:root {
  color-scheme: dark;
  --red: #e2262b;
  --red-bright: #f13b40;
  --ink: #08090a;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.18);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #101214;
}

.hero__photo,
.hero__shade,
.hero__texture {
  position: absolute;
  inset: 0;
}

.hero__photo {
  z-index: -4;
  background-image: url("assets/stargol-fachada-hero.png");
  background-position: center center;
  background-size: cover;
  transform: scale(1.015);
  animation: reveal-photo 1.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(5, 6, 7, 0.9) 29%, rgba(5, 6, 7, 0.48) 53%, rgba(5, 6, 7, 0.06) 78%),
    linear-gradient(180deg, rgba(5, 6, 7, 0.56) 0%, transparent 29%, transparent 70%, rgba(5, 6, 7, 0.8) 100%);
}

.hero__texture {
  z-index: -2;
  opacity: 0.08;
  background-image:
    linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(30deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(150deg, #fff 12%, transparent 12.5%, transparent 87%, #fff 87.5%, #fff),
    linear-gradient(60deg, rgba(255, 255, 255, 0.6) 25%, transparent 25.5%, transparent 75%, rgba(255, 255, 255, 0.6) 75%);
  background-position: 0 0, 0 0, 18px 31px, 18px 31px, 0 0;
  background-size: 36px 63px;
  mask-image: linear-gradient(90deg, #000, transparent 52%);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 64px, 1460px);
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 146px;
  min-height: 58px;
  padding: 3px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.brand__plate img {
  display: block;
  width: 124px;
  height: 51px;
  object-fit: contain;
}

.brand__descriptor {
  max-width: 130px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 9, 10, 0.36);
  font-size: 0.93rem;
  font-weight: 750;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-contact:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(8, 9, 10, 0.58);
  transform: translateY(-2px);
}

.header-contact svg,
.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 64px, 1460px);
  min-height: calc(100svh - 210px);
  margin: 0 auto;
  padding: 58px 0 170px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  animation: rise 650ms 180ms ease-out both;
}

.eyebrow__line {
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 20px rgba(226, 38, 43, 0.6);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.55rem, 6.8vw, 7.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-wrap: balance;
  animation: rise 720ms 260ms ease-out both;
}

h1 span {
  color: var(--red-bright);
  text-shadow: 0 8px 38px rgba(125, 5, 8, 0.32);
}

.hero__lead {
  max-width: 590px;
  margin: 31px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.66;
  animation: rise 720ms 350ms ease-out both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 36px;
  animation: rise 720ms 440ms ease-out both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 56px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 18px 42px rgba(226, 38, 43, 0.28);
}

.button--primary:hover {
  background: var(--red-bright);
  box-shadow: 0 22px 48px rgba(226, 38, 43, 0.38);
}

.button--ghost {
  border-color: var(--border);
  background: rgba(10, 11, 12, 0.4);
  backdrop-filter: blur(14px);
}

.button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(10, 11, 12, 0.62);
}

.site-footer {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 112px;
  padding: 22px max(32px, calc((100vw - 1460px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(7, 8, 9, 0.62);
  backdrop-filter: blur(18px);
}

.location {
  display: flex;
  align-items: center;
  gap: 14px;
}

.location__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(226, 38, 43, 0.32);
  border-radius: 50%;
  background: rgba(226, 38, 43, 0.12);
  color: var(--red-bright);
}

.location__icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.location small,
.contact-number small {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.location strong,
.contact-number a {
  font-size: 0.95rem;
  font-weight: 720;
}

.contact-number {
  text-align: right;
}

.contact-number a {
  transition: color 180ms ease;
}

.contact-number a:hover {
  color: var(--red-bright);
}

@keyframes reveal-photo {
  from { opacity: 0; transform: scale(1.075); }
  to { opacity: 1; transform: scale(1.015); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 850px) {
  .hero__photo {
    background-position: 61% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 0.96) 0%, rgba(5, 6, 7, 0.73) 58%, rgba(5, 6, 7, 0.36) 100%),
      linear-gradient(180deg, rgba(5, 6, 7, 0.4) 0%, rgba(5, 6, 7, 0.18) 40%, rgba(5, 6, 7, 0.9) 100%);
  }

  .site-header,
  .hero__content {
    width: min(100% - 40px, 1460px);
  }

  .brand__descriptor {
    display: none;
  }

  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 100svh;
  }

  .hero__photo {
    background-position: 61% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(4, 5, 6, 0.88), rgba(4, 5, 6, 0.52)),
      linear-gradient(180deg, rgba(4, 5, 6, 0.56) 0%, rgba(4, 5, 6, 0.2) 34%, rgba(4, 5, 6, 0.96) 89%);
  }

  .site-header {
    width: calc(100% - 32px);
    padding: 18px 0;
  }

  .brand__plate {
    min-width: 118px;
    min-height: 49px;
    padding: 2px 8px;
    border-radius: 8px;
  }

  .brand__plate img {
    width: 101px;
    height: auto;
  }

  .header-contact {
    min-height: 43px;
    padding: 0 14px;
  }

  .header-contact span {
    display: none;
  }

  .hero__content {
    justify-content: flex-end;
    width: calc(100% - 32px);
    min-height: calc(100svh - 170px);
    padding: 120px 0 185px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4.25rem);
    line-height: 0.94;
  }

  .hero__lead {
    margin-top: 21px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
    margin-top: 25px;
  }

  .button {
    min-height: 52px;
    padding: 0 17px;
    font-size: 0.92rem;
  }

  .button--ghost span {
    display: none;
  }

  .button--ghost {
    width: 52px;
    padding: 0;
  }

  .site-footer {
    min-height: 104px;
    padding: 17px 16px;
  }

  .location {
    gap: 10px;
  }

  .location__icon {
    display: none;
  }

  .location strong {
    display: block;
    max-width: 235px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .contact-number {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
