/* Tekstura stage 1: shared header, logo, page background and active navigation. */

body.page-shell,
body.site-page,
body.request-page,
body.project-detail-page,
body.calculator-page {
  color: var(--text, #f4e7d4);
  background:
    radial-gradient(circle at 16% 0%, rgba(213, 151, 83, 0.12), transparent 30rem),
    radial-gradient(circle at 86% 10%, rgba(129, 82, 43, 0.1), transparent 34rem),
    linear-gradient(180deg, #120d09 0%, #17100c 46%, #100c08 100%);
  background-attachment: scroll;
}

body.request-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: #120d09;
}

body.request-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 6, 4, 0.96) 0%, rgba(14, 9, 6, 0.82) 42%, rgba(33, 20, 12, 0.52) 100%),
    linear-gradient(180deg, rgba(10, 7, 5, 0.46) 0%, rgba(18, 13, 9, 0.86) 58%, #120d09 100%),
    url('/assets/design/home-hero.jpg') center center / cover no-repeat;
  opacity: 0.82;
}

body.request-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 18%, rgba(239, 210, 172, 0.1), transparent 24rem),
    radial-gradient(circle at 88% 8%, rgba(185, 140, 92, 0.08), transparent 28rem);
}

body.page-shell::after,
body.site-page::after,
body.project-detail-page::after,
body.calculator-page::after {
  display: none;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 136px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 7, 5, 0.86), rgba(10, 7, 5, 0));
}

.site-header__inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 312px;
  height: 78px;
  min-width: 312px;
  min-height: 78px;
  padding: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  letter-spacing: 0;
  text-decoration: none;
}

.site-header .brand::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url('/assets/design/tekstura-header-logo.png') left center / contain no-repeat;
  filter:
    drop-shadow(0 5px 14px rgba(0, 0, 0, 0.64))
    drop-shadow(0 0 12px rgba(214, 160, 72, 0.3));
}

.site-header .brand > img,
.site-header .brand #siteLogo,
.site-header .brand #siteLogoText,
.site-header .brand .brand__mark,
.site-header .brand .brand__copy {
  display: none;
  visibility: hidden;
  width: 0;
  height: 0;
  max-width: 0;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.site-nav a {
  position: relative;
  padding-top: 8px;
  padding-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.56);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-1, #efd2ac);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 210, 172, 0.86), transparent);
}

.page-shell .page-hero,
.site-page .page-hero,
.request-page .page-hero {
  background:
    radial-gradient(circle at top right, rgba(239, 210, 172, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(44, 31, 22, 0.42);
  border: 1px solid rgba(255, 236, 204, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.request-page .request-hero {
  padding: clamp(28px, 5vw, 46px);
  margin-bottom: 18px;
  border-radius: 28px;
}

.request-page .request-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.request-page .request-hero p {
  max-width: 720px;
  color: #ddc9b1;
  font-size: 17px;
  line-height: 1.62;
}

.page-shell .content-card,
.page-shell .info-section,
.page-shell .faq-item,
.page-shell .article-cta,
.site-page .content-card,
.site-page .info-section,
.site-page .faq-item,
.site-page .article-cta {
  border-color: rgba(255, 236, 204, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
    rgba(44, 31, 22, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.page-shell .content-card__image,
.site-page .content-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #211710;
}

.request-page .wrap,
.project-detail-page .wrap {
  position: relative;
  z-index: 1;
  padding-top: 136px;
}

.request-page .wrap {
  max-width: 980px;
  padding-bottom: 72px;
}

.request-page .panel,
.project-detail-page .story,
.project-detail-page .meta,
.project-detail-page .config,
.project-detail-page .trust {
  border-color: rgba(255, 236, 204, 0.12);
  background:
    radial-gradient(circle at top right, rgba(239, 210, 172, 0.07), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(44, 31, 22, 0.48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.request-page .panel {
  border-radius: 22px;
  padding: 20px;
  margin-bottom: 16px;
}

.request-page .panel > b,
.project-detail-page .story > b,
.project-detail-page .trust > b {
  display: block;
  margin-bottom: 10px;
  color: #efd2ac;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.request-page input,
.request-page textarea,
.project-detail-page select,
.project-detail-page input {
  border-color: rgba(255, 236, 204, 0.14);
  background: rgba(18, 13, 9, 0.84);
}

.request-page input,
.request-page textarea {
  min-height: 48px;
  border-radius: 14px;
  color: #f4e7d4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.request-page textarea {
  min-height: 118px;
  resize: vertical;
}

.request-page input:focus,
.request-page textarea:focus {
  border-color: rgba(239, 210, 172, 0.48);
  box-shadow: 0 0 0 3px rgba(239, 210, 172, 0.08);
  background: rgba(18, 13, 9, 0.96);
}

.request-page .result,
.project-detail-page .gallery-main {
  border: 1px solid rgba(255, 236, 204, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.request-page .result {
  color: #d8c4ad;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    rgba(18, 13, 9, 0.58);
}

.request-page .trust-chip {
  border-color: rgba(255, 236, 204, 0.12);
  color: #dbc4a6;
  background: rgba(18, 13, 9, 0.54);
}

.project-detail-page .gallery-main,
.project-detail-page .thumbs img {
  object-fit: cover;
}

.project-detail-page .btn,
.request-page .btn {
  background: linear-gradient(135deg, var(--gold-1, #efd2ac), var(--gold-2, #d9b383) 58%, var(--gold-3, #b98c5c));
  box-shadow: 0 12px 28px rgba(185, 140, 92, 0.24);
}

.request-page .btn {
  min-height: 52px;
  border-radius: 16px;
  font-size: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.request-page .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(185, 140, 92, 0.3);
  filter: brightness(1.03);
}

@media (max-width: 1080px) {
  .site-header .brand {
    width: 260px;
    height: 66px;
    min-width: 260px;
    min-height: 66px;
  }

  .site-nav {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  body.request-page::before {
    background:
      linear-gradient(180deg, rgba(10, 7, 5, 0.64) 0%, rgba(18, 13, 9, 0.92) 58%, #120d09 100%),
      linear-gradient(90deg, rgba(8, 5, 4, 0.9) 0%, rgba(17, 11, 7, 0.7) 60%, rgba(36, 22, 12, 0.28) 100%),
      url('/assets/design/home-hero.jpg') 62% center / cover no-repeat;
    opacity: 0.72;
  }

  .site-header__inner {
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header .brand {
    width: min(220px, 54vw);
    height: 56px;
    min-width: min(220px, 54vw);
    min-height: 56px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .request-page .wrap,
  .project-detail-page .wrap {
    padding-top: 118px;
  }

  .request-page .wrap {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 46px;
  }

  .request-page .request-hero {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .request-page .request-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .request-page .request-hero p {
    font-size: 16px;
  }

  .request-page .panel {
    padding: 18px;
    border-radius: 20px;
  }
}
