/* NIEYU GROUP LIMITED — mint/sage editorial shell, CSS-only hero (no carousel JS) */
:root {
  --ink: #1e2d26;
  --muted: rgba(30, 45, 38, 0.68);
  --paper: #eef6f1;
  --card: #ffffff;
  --line: rgba(92, 125, 106, 0.22);
  --sage: #5c7d6a;
  --sage-deep: #3d5245;
  --clay: #c4654a;
  --clay-soft: #e8b5a8;
  --shadow: 0 18px 44px rgba(30, 45, 38, 0.1);
  --radius: 18px;
  --header-bg: rgba(255, 255, 255, 0.92);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(196, 101, 74, 0.08), transparent 55%),
    radial-gradient(760px 480px at 100% 8%, rgba(92, 125, 106, 0.12), transparent 50%),
    var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--sage-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }
.site-logo img { width: 188px; height: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}
.site-nav a {
  color: var(--sage-deep);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--clay); border-bottom-color: var(--clay-soft); text-decoration: none; }

.container { width: min(1140px, calc(100% - 2.5rem)); margin: 0 auto; }

/* ----- Hero: 3 slides, autoplay + :target manual ----- */
.hero {
  position: relative;
  margin: 1.35rem auto 0;
  width: min(1180px, calc(100% - 2rem));
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: min(580px, 84vh);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__hash {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__slides { position: absolute; inset: 0; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  visibility: hidden;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 18s;
}

@keyframes ny-s1 {
  0%, 28% { opacity: 1; z-index: 2; visibility: visible; }
  33.4%, 100% { opacity: 0; z-index: 0; visibility: hidden; }
}
@keyframes ny-s2 {
  0%, 32% { opacity: 0; z-index: 0; visibility: hidden; }
  33.4%, 61% { opacity: 1; z-index: 2; visibility: visible; }
  66.8%, 100% { opacity: 0; z-index: 0; visibility: hidden; }
}
@keyframes ny-s3 {
  0%, 65% { opacity: 0; z-index: 0; visibility: hidden; }
  66.8%, 95% { opacity: 1; z-index: 2; visibility: visible; }
  100% { opacity: 0; z-index: 0; visibility: hidden; }
}

.hero__slide:nth-child(1) { animation-name: ny-s1; }
.hero__slide:nth-child(2) { animation-name: ny-s2; }
.hero__slide:nth-child(3) { animation-name: ny-s3; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, rgba(30, 45, 38, 0.72) 0%, rgba(30, 45, 38, 0.35) 45%, rgba(62, 82, 69, 0.55) 100%);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary {
  background: var(--clay-soft);
  color: var(--ink);
  border-color: rgba(196, 101, 74, 0.35);
}
.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

#ny-slide-1:target ~ .hero__slides .hero__slide,
#ny-slide-2:target ~ .hero__slides .hero__slide,
#ny-slide-3:target ~ .hero__slides .hero__slide {
  animation: none !important;
  opacity: 0;
  visibility: hidden;
}

#ny-slide-1:target ~ .hero__slides .hero__slide:nth-child(1),
#ny-slide-2:target ~ .hero__slides .hero__slide:nth-child(2),
#ny-slide-3:target ~ .hero__slides .hero__slide:nth-child(3) {
  opacity: 1;
  z-index: 4;
  visibility: visible;
}

.hero__text-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.hero__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(1.65rem, 4.2vw, 2.85rem);
  color: #fff;
  max-width: 640px;
  opacity: 0;
  z-index: 0;
  visibility: hidden;
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.hero__text:nth-child(1) { animation-name: ny-s1; }
.hero__text:nth-child(2) { animation-name: ny-s2; }
.hero__text:nth-child(3) { animation-name: ny-s3; }

#ny-slide-1:target ~ .hero__text-layer .hero__text,
#ny-slide-2:target ~ .hero__text-layer .hero__text,
#ny-slide-3:target ~ .hero__text-layer .hero__text {
  animation: none !important;
  opacity: 0;
  visibility: hidden;
}

#ny-slide-1:target ~ .hero__text-layer .hero__text:nth-child(1),
#ny-slide-2:target ~ .hero__text-layer .hero__text:nth-child(2),
#ny-slide-3:target ~ .hero__text-layer .hero__text:nth-child(3) {
  opacity: 1;
  z-index: 5;
  visibility: visible;
}

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.hero__dot--link {
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  text-indent: -9999px;
  overflow: hidden;
}
.hero__dot--link:hover { background: rgba(255, 255, 255, 0.85); }

#ny-slide-1:target ~ .hero__controls a[href="#ny-slide-1"],
#ny-slide-2:target ~ .hero__controls a[href="#ny-slide-2"],
#ny-slide-3:target ~ .hero__controls a[href="#ny-slide-3"] {
  background: var(--clay-soft);
  transform: scale(1.14);
}

.hero__resume {
  margin-left: 0.2rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  text-decoration: none;
}
.hero__resume:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }

/* ----- Sections ----- */
.section { padding: clamp(2.65rem, 5vw, 4rem) 0; }
.section__head { margin-bottom: 1.35rem; }
.section__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.section__title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  letter-spacing: -0.02em;
}

/* Product grid — 4 equal columns; empty spacer cells */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.grid-4 > .card {
  min-height: 420px;
}

.card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(92, 125, 106, 0.08);
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body { padding: 0.95rem 1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.card__title { margin: 0 0 0.35rem; font-size: 1rem; font-weight: 700; }
.card__desc { margin: 0; font-size: 0.88rem; color: var(--muted); flex: 1; }

.grid-placeholder {
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px dashed rgba(92, 125, 106, 0.2);
  background: rgba(255, 255, 255, 0.35);
}

/* Intro strip — text + media */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: 1.75rem;
  align-items: center;
}
.intro-split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 280px;
}
.intro-split__media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.intro-split__text p { color: var(--muted); margin: 0 0 0.85rem; }
.intro-split__text h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 0.65rem;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.review {
  border-radius: var(--radius);
  padding: 1.1rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 100%;
}
.review__head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.55rem; }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.review__name { font-weight: 700; }
.review__role { font-size: 0.84rem; color: var(--muted); }
.review__stars { color: var(--clay); font-size: 0.9rem; letter-spacing: 0.05em; margin-bottom: 0.45rem; }
.review__text { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Message split */
.section__head--center { text-align: center; }
.split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.2rem;
  align-items: stretch;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 320px;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.message-form {
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.message-form label { font-size: 0.82rem; font-weight: 650; color: var(--sage-deep); }
.message-form input,
.message-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fbfcfb;
}
.message-form textarea { min-height: 120px; resize: vertical; }
.message-form button {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  margin-top: 0.5rem;
  background: var(--sage-deep);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.25rem 0 2rem;
  border-top: 4px solid var(--clay);
}
.site-footer a { color: #f0f7f3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.85fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 0.35rem;
}
.footer-logo-link:hover { opacity: 0.92; }

.footer-brand p { margin: 0.55rem 0 0; font-size: 0.9rem; opacity: 0.88; line-height: 1.45; }
.footer-nav ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-nav a,
.footer-contact li {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}
.social {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
}
.social a:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }

.footer-meta {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  opacity: 0.65;
  text-align: center;
}

/* Contact page */
.contact-hero {
  width: 100%;
  max-height: min(420px, 52vh);
  overflow: hidden;
  border-bottom: 3px solid var(--clay-soft);
}
.contact-hero img { width: 100%; height: min(420px, 52vh); object-fit: cover; }

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: stretch;
  padding: clamp(2rem, 4vw, 3rem) 0 3rem;
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.contact-split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 340px;
}
.contact-split__media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.contact-card {
  border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.contact-card dl { margin: 0; }
.contact-card dt {
  margin: 0.85rem 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card dd { margin: 0; font-weight: 600; }
.contact-card a { word-break: break-word; }

/* About page */
.about-page-hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-height: min(460px, 55vh);
}
.about-page-hero img { width: 100%; height: min(460px, 55vh); object-fit: cover; }

.about-page-body {
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.25rem) 0 2.5rem;
}
.about-page-body h1 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 1rem;
}
.about-page-body p { color: var(--muted); margin: 0 0 1rem; }
.about-page-media {
  margin: 1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-page-media img { width: 100%; height: auto; object-fit: cover; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .intro-split,
  .split,
  .contact-split { grid-template-columns: 1fr; }
  .split__media { order: -1; min-height: 260px; }
  .contact-split__media { order: -1; }
}

@media (max-width: 720px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 > .card,
  .grid-placeholder { min-height: 380px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: min(520px, 82vh); border-radius: var(--radius); }
}
