:root {
  --ink: #080807;
  --night: #0f0f17;
  --night-2: #171726;
  --paper: #f5f2e8;
  --panel: #181827;
  --panel-2: #202033;
  --text: #ffffff;
  --muted: #a7a5b4;
  --warm: #ff7a1a;
  --warm-2: #e3a600;
  --green: #25d366;
  --line: rgba(255, 255, 255, .12);
  --dark-line: rgba(8, 8, 7, .13);
  --shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  color: var(--text);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 900;
}

h2 {
  max-width: 820px;
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 900;
}

h3 {
  font-size: 21px;
  font-weight: 900;
}

.topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 58px);
  color: var(--text);
  background: linear-gradient(to bottom, rgba(8, 8, 10, .86), rgba(8, 8, 10, .30) 70%, rgba(8, 8, 10, 0));
}

.brand {
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 800;
}

.topbar nav a {
  text-decoration: none;
  opacity: .82;
}

.topbar nav a:hover {
  opacity: 1;
}

.topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.topbar__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--green);
  color: #07140d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
}

.lang-switch button {
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--warm-2);
  color: #090806;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--night);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  object-fit: cover;
  object-position: center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 10, .94) 0%, rgba(7, 7, 10, .80) 38%, rgba(7, 7, 10, .28) 78%),
    linear-gradient(0deg, rgba(15, 15, 23, .96), rgba(15, 15, 23, .25) 64%, rgba(15, 15, 23, .55));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 40px));
  margin: 0 clamp(20px, 5vw, 72px) clamp(28px, 8vh, 78px);
  color: var(--text);
}

.hero__pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 122, 26, .42);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--warm);
  background: rgba(255, 122, 26, .08);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.button--primary {
  border-color: var(--warm);
  background: linear-gradient(135deg, var(--warm), #ffb12a);
  color: #120a05;
  box-shadow: 0 14px 36px rgba(255, 122, 26, .26);
}

.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.button--whatsapp {
  border-color: var(--green);
  background: var(--green);
  color: #06120b;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hero__facts div {
  min-height: 92px;
  padding: 18px;
  background: rgba(20, 20, 31, .78);
}

.hero__facts strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 22px;
}

.hero__facts span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(66px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

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

.section-head--split {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) 1fr;
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
}

.section-head--split > p,
.section-head--split .feature-list {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.intro,
.section--works,
.about,
.estimate {
  background: var(--paper);
}

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

.service-grid article,
.steps article {
  min-height: 230px;
  border: 1px solid rgba(8, 8, 7, .09);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(8, 8, 7, .06);
}

.service-grid span,
.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border-radius: 14px;
  color: var(--warm);
  background: rgba(255, 122, 26, .12);
  font-weight: 900;
}

.service-grid p,
.steps p,
.about p:not(.eyebrow),
.estimate p:not(.eyebrow) {
  color: #62616a;
  font-size: 16px;
}

.seo-services {
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0, rgba(255, 122, 26, .20), transparent 32%),
    linear-gradient(135deg, #11111a, #1b1b2b);
}

.seo-services h2,
.process h2,
.contacts h2 {
  color: var(--text);
}

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

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: rgba(255, 255, 255, .78);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  min-height: 42px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--text);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  background: #070707;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(8, 8, 7, .12);
}

.work-card--wide {
  grid-column: auto;
  aspect-ratio: 4 / 5;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .35) 48%, rgba(0, 0, 0, .02)),
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 34%);
}

.work-card span,
.work-card strong {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
}

.work-card span {
  bottom: 64px;
  color: #ffd08a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card strong {
  bottom: 22px;
  font-size: 22px;
  line-height: 1.05;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-card.is-hidden {
  display: none;
}

.process {
  color: var(--text);
  background:
    radial-gradient(circle at 80% 6%, rgba(255, 122, 26, .14), transparent 32%),
    linear-gradient(135deg, #09090d, #151522);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.steps article {
  min-height: 200px;
  border-color: var(--line);
  background: rgba(255, 255, 255, .045);
  box-shadow: none;
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #000;
}

.video-grid h3 {
  padding: 18px;
  color: var(--text);
}

.about {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) 1fr;
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.about > img {
  width: 100%;
  height: min(720px, 78vh);
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 20px 54px rgba(8, 8, 7, .15);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  border: 1px solid var(--dark-line);
  background: var(--dark-line);
}

.stats div {
  padding: 18px;
  background: #fff;
}

.stats dt {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 900;
}

.stats dd {
  margin: 0;
  color: #62616a;
}

.estimate {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) 1fr;
  gap: clamp(28px, 5vw, 70px);
}

.estimate__panel {
  align-self: start;
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  color: var(--text);
  background: linear-gradient(135deg, #0a5b32, #08391f);
}

.estimate__panel .eyebrow,
.estimate__panel p {
  color: rgba(255, 255, 255, .82);
}

.estimate__panel h2 {
  color: var(--text);
}

.seo-compact {
  background: #fff;
}

.seo-compact .section-head--split > p {
  color: #62616a;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.seo-card-grid article {
  min-height: 172px;
  border: 1px solid rgba(8, 8, 7, .10);
  border-radius: 18px;
  padding: 22px;
  background: var(--paper);
}

.seo-card-grid h3 {
  margin-bottom: 12px;
}

.seo-card-grid p {
  margin: 0;
  color: #62616a;
}

.project-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border: 1px solid var(--dark-line);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 8, 7, .08);
}

.project-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.project-form span {
  color: #34333a;
  font-size: 12px;
  text-transform: uppercase;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  border: 1px solid rgba(8, 8, 7, .16);
  border-radius: 12px;
  background: #fafafa;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.project-form input,
.project-form select {
  height: 50px;
  padding: 0 12px;
}

.project-form textarea {
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  outline: 2px solid var(--warm);
  outline-offset: 2px;
}

.project-form__wide {
  grid-column: 1 / -1;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) 1fr;
  gap: clamp(28px, 5vw, 70px);
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0, rgba(255, 122, 26, .16), transparent 30%),
    #09090d;
}

.contacts p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 900;
  background: rgba(255, 255, 255, .04);
}

.contact-links a:hover {
  border-color: var(--warm);
  background: var(--warm);
  color: #120a05;
}

.whatsapp-float {
  position: fixed;
  z-index: 35;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 122px;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--green);
  color: #07140d;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
}

.lightbox {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 54px 18px 22px;
  background: rgba(0, 0, 0, .90);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  object-fit: contain;
}

.lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: min(1100px, 100%);
  margin: 14px 0 0;
  color: white;
  text-align: center;
}

.lightbox p {
  margin: 0;
  font-weight: 900;
}

.lightbox span {
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: white;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  font-weight: 900;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  font-size: 44px;
  line-height: 1;
}

.lightbox__nav--prev {
  left: 18px;
}

.lightbox__nav--next {
  right: 18px;
}

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 860px;
  }

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

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

@media (max-width: 840px) {
  .topbar {
    position: absolute;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 14px 0;
  }

  .topbar nav {
    order: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    font-size: 12px;
  }

  .topbar nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 0 6px;
    background: rgba(255, 255, 255, .06);
    text-align: center;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(10, 10, 14, .96), rgba(10, 10, 14, .30) 66%),
      linear-gradient(90deg, rgba(10, 10, 14, .76), rgba(10, 10, 14, .16));
  }

  .section-head--split,
  .about,
  .estimate,
  .contacts {
    grid-template-columns: 1fr;
  }

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

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  h2 {
    font-size: clamp(26px, 7.6vw, 34px);
  }

  .hero__pill,
  .eyebrow {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
  }

  .topbar__wa {
    display: none;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__content {
    width: calc(100% - 24px);
    margin: 0 12px 22px;
  }

  .lead {
    font-size: 17px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 50px;
    padding: 0 16px;
  }

  .hero__facts {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .hero__facts div {
    min-height: 78px;
  }

  .section {
    padding: 54px 12px;
  }

  .service-grid,
  .steps,
  .video-grid,
  .seo-card-grid,
  .stats,
  .project-form {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .steps article {
    min-height: 0;
    padding: 20px;
  }

  .service-grid span,
  .steps span {
    margin-bottom: 22px;
  }

  .filters {
    flex-wrap: nowrap;
    margin: 0 -12px 20px;
    padding: 0 12px 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter {
    flex: 0 0 auto;
    max-width: 76vw;
    white-space: nowrap;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .work-card,
  .work-card--wide {
    grid-column: auto;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
  }

  .work-card span,
  .work-card strong {
    left: 8px;
    right: 8px;
  }

  .work-card span {
    bottom: 42px;
    font-size: 8px;
  }

  .work-card strong {
    bottom: 10px;
    font-size: 12px;
  }

  .about > img {
    height: min(460px, 70vh);
  }

  .project-form {
    padding: 14px;
  }

  .contact-links a {
    min-height: 52px;
    font-size: 16px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    min-width: 106px;
    min-height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar nav {
    font-size: 11px;
  }
}

/* Portfolio: four columns on desktop, twelve albums in three rows. */
@media (min-width: 841px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1200px;
  }
}

@media (min-width: 841px) {
  .work-card span { top: 18px; bottom: auto; }
  .work-card strong { font-size: 20px; line-height: 1.15; }
}

/* Keep mobile header separate from hero copy and album labels. */
@media (max-width: 840px) {
  .hero { padding-top: 150px; }
  .hero__pill { white-space: normal; line-height: 1.4; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 100px; }
  .work-card span { top: 8px; bottom: auto; }
}
