:root {
  --bg: #070809;
  --bg-2: #10131a;
  --text: #f2efe7;
  --muted: #b8b1a2;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #d8b36a;
  --gold-deep: #9f722d;
  --radius: 20px;
  --shadow: 0 26px 46px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 0% 0%, #1a1f27 0%, #0b0d11 34%, #070809 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  scroll-behavior: smooth;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 3.2vw;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 12, 15, 0.88);
  backdrop-filter: blur(10px);
}

.brand img {
  width: 92px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(216, 179, 106, 0.35);
  object-fit: contain;
  object-position: center;
  background: #101319;
  padding: 4px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 170ms ease, border-color 170ms ease;
}

.nav-links a:hover {
  color: var(--text);
  border-bottom-color: rgba(216, 179, 106, 0.6);
}

.phone-chip {
  text-decoration: none;
  border: 1px solid rgba(216, 179, 106, 0.56);
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #f4dfb4;
  background: rgba(216, 179, 106, 0.08);
}

.phone-chip:hover {
  background: var(--gold);
  color: #191205;
}

main {
  width: min(1200px, 92vw);
  margin: 1.9rem auto 0;
}

.section-wrap {
  margin-bottom: 4.2rem;
}

.eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: #e7c67f;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.6rem, 6.8vw, 5.8rem);
}

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

h3 {
  font-size: 1.35rem;
}

.hero {
  min-height: 72vh;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(96deg, rgba(8, 9, 12, 0.9) 20%, rgba(8, 9, 12, 0.45) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: clamp(1.2rem, 4vw, 3.2rem);
}

.hero-content > p {
  margin: 1rem 0;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.22rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

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

.btn-gold {
  background: linear-gradient(130deg, var(--gold), var(--gold-deep));
  color: #1b1305;
  box-shadow: 0 14px 22px rgba(159, 114, 45, 0.34);
}

.btn-ghost {
  background: rgba(216, 179, 106, 0.08);
  border-color: rgba(216, 179, 106, 0.58);
  color: #f4dfb2;
}

.section-title,
.section-head {
  margin-bottom: 1.15rem;
}

.services,
.gallery,
.partner,
.reviews,
.contact,
.feature,
.work-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, #181e27, #11151b);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.service-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.75rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.service-list li > span {
  color: #e7c67f;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.service-list p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.text-link {
  display: inline-block;
  margin-top: 0.55rem;
  color: #f3dfb6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.g1 {
  grid-column: span 8;
  aspect-ratio: 16 / 10;
  object-position: 50% 58%;
}

.g2 {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
  object-position: 52% 56%;
}

.g3 {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
  object-position: 56% 48%;
}

.g4 {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
  object-position: 46% 50%;
}

.g5 {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
  object-position: 50% 40%;
}

.partner-row {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1rem;
  align-items: center;
}

.partner-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.partner-row img {
  border-radius: 16px;
  border: 1px solid var(--line);
  min-height: 340px;
  object-fit: cover;
  object-position: 50% 46%;
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.95rem;
}

.reviews-list blockquote {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(13, 16, 21, 0.86);
}

.reviews-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.56;
}

.reviews-list cite {
  display: inline-block;
  margin-top: 0.65rem;
  font-style: normal;
  color: #ddd0b2;
  font-weight: 600;
}

.contact p {
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.footer {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 1.6rem 4vw 2.2rem;
  color: var(--muted);
}

.footer p {
  margin: 0.2rem 0;
}

.footer p:first-child,
.footer a {
  color: #f3e1bb;
}

.legal {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

html {
  scroll-padding-top: 92px;
}

#services,
#gallery,
#partner,
#reviews,
#contact,
#work {
  scroll-margin-top: 92px;
}

@media (max-width: 980px) {
  main {
    margin-top: 1.3rem;
  }

  .gallery-grid img {
    grid-column: span 6 !important;
  }

  .partner-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    min-height: 64vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 9, 12, 0.7), rgba(8, 9, 12, 0.94));
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    grid-column: auto !important;
    aspect-ratio: 16 / 11 !important;
  }
}

@media (max-width: 560px) {
  .btn,
  .phone-chip {
    width: 100%;
  }
}

/* NXTZEN section polish: reduce visual weight */
.partner {
  padding: 0.9rem;
}

.partner .section-title {
  margin-bottom: 0.7rem;
}

.partner-row {
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0.75rem;
}

.partner-row p {
  max-width: 48ch;
  line-height: 1.54;
  font-size: 0.98rem;
}

.partner-row img {
  min-height: 250px;
  max-height: 280px;
}

@media (max-width: 980px) {
  .partner-row img {
    min-height: 220px;
    max-height: 240px;
  }
}

/* Image sizing reset: clean order + consistent crops */
.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  grid-column: auto !important;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover;
}

.g1 { object-position: 50% 56%; }
.g2 { object-position: 52% 56%; }
.g3 { object-position: 56% 48%; }
.g4 { object-position: 46% 50%; }
.g5 { object-position: 50% 42%; }

.partner-row {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.partner-row img {
  width: 100%;
  height: 100%;
  min-height: unset;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 46%;
}

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

  .partner-row {
    grid-template-columns: 1fr;
  }

  .partner-row img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 780px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    aspect-ratio: 16 / 11 !important;
  }
}

/* Theme lock: black + gold */
:root {
  --bg: #050505;
  --bg-2: #0e0e0f;
  --text: #f2efe7;
  --muted: #b8b1a2;
  --line: rgba(216, 179, 106, 0.24);
  --gold: #d8b36a;
  --gold-deep: #9f722d;
}

html,
body {
  background: radial-gradient(circle at 0% 0%, #141414 0%, #090909 36%, #050505 100%);
}

.topbar,
.services,
.gallery,
.partner,
.reviews,
.contact,
.feature,
.work-grid,
.hero {
  border-color: var(--line);
}

.phone-chip,
.btn-ghost {
  border-color: rgba(216, 179, 106, 0.56);
}

/* Mobile optimization pass */
@media (max-width: 900px) {
  main {
    width: min(94vw, 760px);
    margin-top: 1.2rem;
  }

  .topbar {
    padding: 0.7rem 0.9rem;
    row-gap: 0.55rem;
  }

  .brand img {
    width: 82px;
    height: 50px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.9rem;
    padding-bottom: 0.1rem;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 58vh;
  }

  .hero-content {
    padding: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.3rem);
  }

  .section-wrap {
    margin-bottom: 3.2rem;
  }

  .services,
  .gallery,
  .partner,
  .reviews,
  .contact,
  .feature,
  .work-grid {
    padding: 0.9rem;
  }

  .service-list li {
    grid-template-columns: 44px 1fr;
    gap: 0.55rem;
  }

  .partner-row {
    gap: 0.8rem;
  }
}

@media (max-width: 640px) {
  .phone-chip,
  .btn {
    width: 100%;
  }

  .hero-actions,
  .actions {
    gap: 0.6rem;
  }

  .hero-content > p,
  .subtitle,
  .service-list p,
  .reviews-list p,
  .partner-row p,
  .contact p {
    font-size: 0.96rem;
    line-height: 1.52;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .gallery-grid img,
  .g1,
  .g2,
  .g3,
  .g4,
  .g5 {
    grid-column: auto !important;
    aspect-ratio: 16 / 11 !important;
  }

  .partner-row img {
    aspect-ratio: 16 / 10;
    min-height: unset;
  }

  .reviews-list {
    grid-template-columns: 1fr;
  }
}

/* NXTZEN repolish: centered, balanced, cleaner */
.partner-row {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 1.15rem;
}

.partner-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}

.partner-copy .eyebrow {
  margin-bottom: 0.45rem;
}

.partner-copy h2 {
  margin-bottom: 0.4rem;
}

.partner-copy > p:last-child {
  margin-top: 0;
  max-width: 46ch;
  line-height: 1.56;
}

.partner-row img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 320px;
  object-fit: cover;
  object-position: 50% 46%;
}

@media (max-width: 980px) {
  .partner-copy {
    min-height: auto;
  }

  .partner-row img {
    min-height: 240px;
    max-height: 260px;
  }
}
