:root {
  --ink: #071f3d;
  --ink-soft: #405875;
  --brand: #0668c9;
  --brand-dark: #003b78;
  --fresh: #12a878;
  --line: #dbe6f1;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(7, 31, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  line-height: 1.55;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.site-header,
.internal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(16px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.94rem;
}

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

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section,
.section-band {
  padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 72px);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
}

.section-band {
  background: linear-gradient(135deg, #f5faff 0%, #ffffff 50%, #eef8f4 100%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  min-height: calc(100vh - 74px);
}

.hero-copy {
  max-width: 700px;
}

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

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

h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.2rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--ink-soft);
}

.hero-copy > p:not(.eyebrow),
.section-head p {
  max-width: 760px;
  font-size: 1.08rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 12px 28px rgba(6, 104, 201, 0.24);
}

.button.secondary {
  color: var(--brand-dark);
  background: white;
  border-color: var(--line);
}

.hero-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: min(620px, 68vh);
  object-fit: cover;
}

.hero-facts,
.service-grid,
.metric-grid,
.review-grid,
.area-grid {
  display: grid;
  gap: 16px;
}

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

.hero-facts div,
.focus-panel,
.metric-card,
.request-card,
.order-card,
.employee-card,
.calendar-card,
blockquote {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(7, 31, 61, 0.06);
}

.hero-facts div {
  padding: 14px;
}

.hero-facts dt {
  font-size: 1.25rem;
  font-weight: 900;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.section-head {
  margin-bottom: 28px;
}

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

.service-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(7, 31, 61, 0.05), rgba(7, 31, 61, 0.78)), var(--service-image);
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 45%);
}

.service-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(7, 31, 61, 0.84));
}

.service-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--brand-dark);
  background: white;
  border-radius: 8px;
  font-weight: 900;
}

.service-overlay p,
.service-overlay li {
  color: rgba(255, 255, 255, 0.88);
}

.service-overlay ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.service-grid .service-card {
  display: grid;
  grid-template-rows: 180px 1fr;
  min-height: 440px;
  background: white;
  border: 1px solid var(--line);
}

.service-grid .service-card::before {
  display: none;
}

.service-media {
  position: relative;
  overflow: hidden;
  background: #eaf4ff;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(7, 31, 61, 0.22));
}

.service-media span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--brand);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-weight: 900;
}

.service-content {
  display: grid;
  grid-template-rows: minmax(56px, auto) auto 1fr;
  gap: 12px;
  padding: 22px;
}

.service-content h3 {
  display: flex;
  align-items: flex-start;
}

.service-content p {
  margin: 0;
}

.service-content ul {
  align-self: end;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-content li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-soft);
  font-weight: 750;
}

.service-content li + li {
  margin-top: 7px;
}

.service-content li::before {
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--fresh);
  border-radius: 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.trust-list,
.gallery-tabs,
.area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-list span,
.area-grid span,
.status-pill,
.gallery-tabs button,
.app-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--brand-dark);
  background: #eaf4ff;
  border: 1px solid #cfe5fb;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.gallery-tabs {
  margin-bottom: 16px;
}

.gallery-tabs button,
.app-tabs button {
  cursor: pointer;
}

.gallery-tabs button.active,
.app-tabs button.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.status-pill.status-new,
.status-pill.status-pending {
  color: #8a4b00;
  background: #fff4df;
  border-color: #f1c27d;
}

.status-pill.status-assigned {
  color: #9a5b00;
  background: #fff0cf;
  border-color: #f0bd5e;
}

.status-pill.status-active {
  color: #0d694b;
  background: #e2f8ef;
  border-color: #a8e3ca;
}

.status-pill.status-done {
  color: #576577;
  background: #eef1f4;
  border-color: #cfd7df;
}

.status-pill.status-cancelled {
  color: #8d1f17;
  background: #fee8e5;
  border-color: #f6b5ae;
}

.order-card.status-new,
.order-card.status-pending,
.focus-order.status-new,
.focus-order.status-pending {
  background: #fffaf1;
  border-left: 5px solid #f0a202;
}

.order-card.status-assigned,
.focus-order.status-assigned {
  background: #fff7e8;
  border-left: 5px solid #f0a202;
}

.order-card.status-active,
.focus-order.status-active {
  background: #f1fcf7;
  border-left: 5px solid var(--fresh);
}

.order-card.status-done,
.focus-order.status-done {
  color: #66758a;
  background: #f3f5f7;
  border-left: 5px solid #aeb8c2;
  opacity: 0.84;
}

.order-card.status-cancelled,
.focus-order.status-cancelled {
  background: #fff4f3;
  border-left: 5px solid var(--danger);
}

.comparison-card {
  overflow: hidden;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.comparison-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.comparison-card figcaption {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.comparison-card figcaption span,
cite {
  color: var(--ink-soft);
}

.review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

blockquote {
  margin: 0;
  padding: 20px;
}

blockquote p {
  margin-top: 0;
  color: var(--ink);
  font-weight: 800;
}

form {
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: white;
  border: 1px solid #bfd0df;
  border-radius: 8px;
}

textarea {
  resize: vertical;
}

small {
  color: var(--ink-soft);
  font-weight: 650;
}

.wide {
  grid-column: 1 / -1;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 650;
}

.checkbox input {
  width: 20px;
  min-height: 20px;
  margin-top: 4px;
}

.upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.upload-preview span {
  padding: 8px 10px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.file-drop {
  position: relative;
  align-items: start;
  padding: 18px;
  background: #f7fbff;
  border: 1px dashed #9db8d0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.file-drop:hover,
.file-drop:focus-within {
  background: #eef7ff;
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(6, 104, 201, 0.1);
}

.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-drop span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: white;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.compact-drop {
  padding: 12px;
}

.compact-drop span {
  width: 100%;
  min-height: 40px;
}

.form-message {
  margin: 0;
  font-weight: 900;
}

.form-message.success {
  color: var(--fresh);
}

.form-message.error {
  color: var(--danger);
}

.whatsapp-button {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  color: white;
  background: #128c7e;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 5vw, 72px);
  color: white;
  background: var(--ink);
}

.site-footer a {
  color: white;
  font-weight: 800;
}

.footer-link {
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.internal-app,
.login-app,
.legal-app {
  min-height: 100vh;
  background: #eef4f9;
}

.auth-main,
.legal-main {
  display: grid;
  align-items: start;
  min-height: calc(100vh - 73px);
  padding: clamp(28px, 7vw, 72px) clamp(16px, 5vw, 72px);
}

.auth-card,
.legal-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card form {
  margin-top: 20px;
}

.legal-main {
  gap: 18px;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-tabs button {
  min-height: 42px;
  padding: 0 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.legal-tabs button.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.legal-panel {
  display: none;
}

.legal-panel.active {
  display: block;
}

.legal-panel a {
  color: var(--brand);
  font-weight: 800;
}

.internal-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.app-tabs {
  position: sticky;
  top: 73px;
  z-index: 15;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px clamp(16px, 5vw, 72px);
  background: rgba(238, 244, 249, 0.96);
  border-bottom: 1px solid var(--line);
}

.app-tabs button,
.file-drop span,
.order-card select,
.order-card textarea,
.employee-form input,
.order-form input,
.order-form select,
.order-form textarea {
  min-height: 44px;
}

.internal-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px clamp(16px, 5vw, 40px) 56px;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.workspace-top,
.view-head,
.order-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.workspace-top {
  margin-bottom: 20px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  display: block;
  font-size: 1.9rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
}

.focus-panel,
.request-card,
.order-card,
.employee-card,
.calendar-card,
.create-panel {
  padding: 20px;
}

.focus-order {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-actions,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar.compact {
  display: grid;
}

.request-list,
.order-list,
.employee-list,
.calendar-list {
  display: grid;
  gap: 12px;
}

.create-panel {
  margin-bottom: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-form,
.employee-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.order-form textarea,
.order-form button {
  grid-column: span 2;
}

.employee-form button {
  grid-column: span 2;
}

.order-card {
  display: grid;
  gap: 12px;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-meta span {
  padding: 6px 9px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.order-card details {
  padding: 0;
  background: transparent;
  border: 0;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.order-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.task-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.photo-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.photo-strip.empty {
  display: block;
  padding: 10px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px dashed #b8c8d8;
  border-radius: 8px;
  font-weight: 700;
}

.photo-strip figure {
  overflow: hidden;
  margin: 0;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-strip figcaption {
  overflow: hidden;
  padding: 7px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-card strong,
.employee-card strong {
  display: block;
}

@media (max-width: 1040px) {
  .hero,
  .split,
  .focus-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

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

  .order-form,
  .employee-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .site-header,
  .internal-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .main-nav {
    position: absolute;
    top: 73px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .hero-facts,
  .service-grid,
  .review-grid,
  .request-form,
  .metric-grid,
  .order-form,
  .employee-form,
  .order-editor,
  .photo-columns {
    grid-template-columns: 1fr;
  }

  .comparison-card img {
    aspect-ratio: 1 / 1;
  }

  .workspace-top,
  .view-head,
  .order-actions,
  .internal-user {
    align-items: stretch;
    flex-direction: column;
  }

  .order-form textarea,
  .order-form button,
  .employee-form button {
    grid-column: auto;
  }

  .button,
  .whatsapp-button {
    width: 100%;
  }

  .whatsapp-button {
    right: 12px;
    left: 12px;
    bottom: 78px;
  }

  .internal-main {
    padding-top: 18px;
  }

  .app-tabs {
    top: 72px;
    padding: 10px 12px;
  }

  .app-tabs button {
    flex: 0 0 auto;
  }

  .focus-panel,
  .request-card,
  .order-card,
  .employee-card,
  .calendar-card,
  .create-panel {
    padding: 16px;
  }
}
