:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-muted: #eef3f7;
  --ink: #111827;
  --muted: #667085;
  --line: #d9e1e8;
  --blue: #0f75bc;
  --teal: #0f9f8f;
  --amber: #c47f16;
  --red: #ba3d3d;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(15, 117, 188, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(15, 117, 188, 0.05) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  background: rgba(247, 249, 251, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a {
  color: #344054;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--surface-muted);
}

.nav-cta,
.button-primary {
  color: #fff !important;
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

#app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 1px solid var(--line);
}

.button-secondary {
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 60%, rgba(0, 0, 0, 0.45)),
    linear-gradient(90deg, rgba(15, 117, 188, 0.16), transparent 46%);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.metrics article,
.service-card,
.work-card,
.admin-panel,
.contact-card,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.metrics article {
  padding: 20px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics span,
.service-card p,
.work-card p,
.detail-panel p,
.empty-state,
.admin-help,
label,
.contact-card span {
  color: var(--muted);
  line-height: 1.6;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.page-heading p {
  max-width: 680px;
}

.service-grid,
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  overflow: hidden;
  text-decoration: none;
}

.service-image {
  height: 176px;
  background: var(--surface-muted);
}

.service-body,
.work-body {
  padding: 20px;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.service-card:nth-child(2) .service-icon { background: var(--amber); }
.service-card:nth-child(3) .service-icon { background: var(--teal); }
.service-card:nth-child(4) .service-icon { background: var(--red); }

.icon {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.detail-image {
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-panel {
  padding: 28px;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-bar button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #344054;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-bar button.active {
  color: #fff;
  background: var(--ink);
}

.work-card {
  overflow: hidden;
}

.work-image {
  height: 190px;
  background: var(--surface-muted);
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: #344054;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: 18px;
}

.admin-panel {
  padding: 22px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  font: inherit;
}

.button-danger {
  color: #fff;
  background: var(--red);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-thumb {
  height: 62px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface-muted);
}

.admin-row strong,
.admin-row span {
  display: block;
}

.admin-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 800;
}

.row-actions button:last-child {
  color: var(--red);
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
}

.contact-section {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: center;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-card a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
  font-weight: 800;
  text-decoration: none;
}

.contact-card .whatsapp-link {
  color: #fff;
  border-color: #128c7e;
  background: #128c7e;
}

@media (max-width: 980px) {
  .hero,
  .service-detail,
  .admin-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .detail-image {
    min-height: 380px;
    height: 48vw;
  }
}

@media (max-width: 720px) {
  .site-header {
    width: min(100% - 22px, 1180px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  #app {
    width: min(100% - 22px, 1180px);
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(2.55rem, 14vw, 4.2rem);
  }

  .hero-actions .button,
  .form-actions .button {
    width: 100%;
  }

  .metrics,
  .service-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .page-heading {
    display: block;
  }

  .admin-row {
    grid-template-columns: 76px 1fr;
  }

  .row-actions {
    grid-column: 1 / -1;
  }
}
