:root {
  --red: #c91f25;
  --red-dark: #8e1418;
  --black: #090b0d;
  --graphite: #171b20;
  --steel: #5c6770;
  --muted: #66717a;
  --line: #dfe3e6;
  --paper: #f4f5f3;
  --white: #ffffff;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.58;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: rgba(9, 11, 13, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 168px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.08;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
  white-space: nowrap;
}

.nav a:hover,
.footer a:hover,
.top-link:hover {
  color: var(--red);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-weight: 850;
  cursor: pointer;
}

.header-cta,
.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.button.light {
  color: var(--graphite);
  background: var(--white);
  border-color: var(--line);
}

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

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.page-hero {
  min-height: 56vh;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 11, 13, 0.94) 0%, rgba(9, 11, 13, 0.78) 45%, rgba(9, 11, 13, 0.26) 100%),
    linear-gradient(0deg, rgba(9, 11, 13, 0.58), rgba(9, 11, 13, 0.1));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(890px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 84px);
  padding: clamp(56px, 8vw, 110px) 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 5.3vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
}

h2 {
  font-size: clamp(2rem, 3.3vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.28;
}

.lead,
.hero-text {
  max-width: 740px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.04rem, 1.35vw, 1.24rem);
}

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

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) 0;
}

.section.compact {
  padding: clamp(42px, 6vw, 76px) 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: 1.06rem;
}

.dark {
  width: 100%;
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
  background: var(--black);
  color: var(--white);
}

.dark .section-heading,
.dark .section-inner {
  width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}

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

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.dark .card {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.card .number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 900;
}

.card p {
  color: var(--muted);
}

.dark .card p {
  color: rgba(255, 255, 255, 0.68);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.metrics div {
  min-height: 118px;
  padding: 26px clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
}

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

.metrics strong {
  font-size: 1.22rem;
}

.metrics span {
  margin-top: 6px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 16px 16px 16px 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--red);
}

.strip {
  padding: 22px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--red);
  font-weight: 850;
  text-align: center;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process div {
  min-height: 190px;
  padding: 24px;
  background: var(--paper);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 21px 0;
  font-size: 1.08rem;
  font-weight: 850;
}

.faq p {
  max-width: 850px;
  padding-bottom: 22px;
  color: var(--muted);
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 7vw, 90px);
  padding: clamp(64px, 9vw, 118px) clamp(18px, 6vw, 84px);
  color: var(--white);
  background: var(--black);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.72);
}

.form {
  display: grid;
  gap: 14px;
  align-self: start;
}

.form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 800;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.form select option {
  color: var(--graphite);
}

.form textarea {
  resize: vertical;
}

.text-link {
  color: var(--red);
  font-weight: 850;
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr) auto;
  gap: 26px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #050607;
}

.footer strong {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  background: #168c54;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  font-weight: 900;
}

.portfolio-grid {
  display: grid;
  gap: 24px;
}

.portfolio-item {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.portfolio-body {
  padding: clamp(24px, 4vw, 42px);
}

.portfolio-body dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.portfolio-body dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-body dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.empty-portfolio {
  max-width: 760px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-hero {
  min-height: 46vh;
  background:
    linear-gradient(90deg, rgba(9, 11, 13, 0.96), rgba(9, 11, 13, 0.82)),
    var(--graphite);
}

.admin-shell {
  display: grid;
  gap: 34px;
}

.admin-card,
.admin-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-form {
  max-width: 980px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form label:nth-of-type(8),
.admin-form label:nth-of-type(9),
.admin-form label:nth-of-type(10),
.admin-form button,
.admin-form .form-message {
  grid-column: 1 / -1;
}

.admin-card label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 850;
}

.admin-card input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--graphite);
  background: var(--paper);
  font: inherit;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.admin-list-heading {
  margin-top: 36px;
}

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

.portfolio-admin-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.portfolio-admin-item img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
}

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

.portfolio-admin-item span {
  color: var(--muted);
}

@media (max-width: 1060px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .two-col,
  .contact-band,
  .footer,
  .portfolio-item {
    grid-template-columns: 1fr;
  }

  .grid.cards-3,
  .grid.cards-4,
  .metrics,
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
    gap: 12px;
  }

  .brand {
    min-width: auto;
  }

  .header-cta {
    padding: 0 12px;
  }

  .hero {
    min-height: 780px;
  }

  .page-hero {
    min-height: 620px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  h1 {
    font-size: 2.42rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .grid.cards-3,
  .grid.cards-4,
  .metrics,
  .process {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-bottom: 88px;
  }

  .admin-form,
  .portfolio-body dl,
  .portfolio-admin-item {
    grid-template-columns: 1fr;
  }

  .portfolio-admin-item img {
    width: 100%;
    height: 180px;
  }
}
