@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
:root{--ink:#142a22;--green:#214b38;--paper:#f7f7ef;--lime:#dff68d;--line:#d9dfd4}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.55 "DM Sans",Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img{display:block;width:100%;object-fit:cover}.wrap{width:min(1180px,calc(100% - 64px));margin:auto}.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:74px}.brand{font:800 20px Manrope,Arial,sans-serif;letter-spacing:.02em;white-space:nowrap}.brand span{color:#658521;margin-right:5px}nav{display:flex;flex-wrap:wrap;gap:8px 28px;font-size:20px;font-weight:800}nav a:hover,footer a:hover{text-decoration:underline}.hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.13fr);background:#142e25;color:#fff}.hero-inner{align-self:center;padding:clamp(52px,7vw,115px) clamp(32px,5.6vw,96px);padding-left:max(32px,calc((100vw - 1180px)/2))}.hero-scene{position:relative;min-width:0;min-height:100%;margin:0;background:#dce6dc}.hero-scene img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 46%}.hero-scene figcaption{position:absolute;bottom:18px;right:18px;margin-left:18px;padding:5px 10px;background:#142e25e8;color:white;font-size:12px;border-radius:3px}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:800;color:#426247;margin:0 0 16px}.hero .eyebrow{color:var(--lime)}h1,h2,h3{font-family:Manrope,Arial,sans-serif;line-height:1.06;letter-spacing:-.045em;margin:0}h1{font-size:clamp(39px,5.5vw,82px);max-width:690px;font-weight:800}h2{font-size:clamp(34px,4.7vw,60px)}h3{font-size:25px}.hero-description{max-width:440px;font-size:18px;color:#ecf2e7;margin:24px 0 30px}.button{display:inline-flex;align-items:center;gap:18px;padding:13px 19px;background:var(--lime);border:1px solid transparent;color:var(--ink);font-weight:800;border-radius:4px;text-align:left}.button:hover{background:#efffb9}.section{padding-block:82px}.categories{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0 23px;scroll-margin-top:16px}.chip{border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--ink);padding:8px 13px;font-size:14px}.chip:hover,.chip[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:5px}.card img{aspect-ratio:1.5}.card img.product{object-fit:contain;background:#edf0e9;padding:14px}.category-card img.product{aspect-ratio:1.66}.copy{padding:20px;flex:1;display:flex;flex-direction:column;align-items:flex-start}.copy p{color:#506356;margin:10px 0}.detail{margin-top:auto;padding:8px 0 0;border:0;background:none;font-weight:800;color:var(--green)}.detail:hover{text-decoration:underline}.projects{background:#e9eee4}.projects .grid{margin-top:30px}.brief{display:grid;grid-template-columns:1fr 1fr;gap:60px}.brief p{max-width:370px}form{display:grid;gap:14px;align-content:start}label{display:grid;gap:5px;font-weight:700}input,select,textarea{min-width:0;width:100%;border:1px solid #aebbb0;background:white;color:var(--ink);border-radius:4px;padding:9px 12px}form .button{justify-self:start}#notice{margin:0}footer{background:var(--ink);color:white}footer .brand span{color:var(--lime)}dialog{border:1px solid var(--line);border-radius:5px;color:var(--ink);width:min(680px,calc(100% - 28px));max-height:90vh;padding:0}dialog::backdrop{background:#10291ebb}.dialog-bar{text-align:right;padding:7px 14px}.dialog-bar button{border:0;background:transparent;font-size:28px}#product-detail{padding:0 23px 24px}#product-detail img{height:220px;object-fit:contain;background:#edf0e9;margin-bottom:18px}dl{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}dt{font-weight:800}dd{margin:0}:focus-visible{outline:3px solid #719422;outline-offset:3px}
@media(max-width:900px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brief{gap:28px}.hero-inner{padding-right:30px}}
@media(max-width:660px){.hero{grid-template-columns:1fr}.hero-inner{padding:46px 24px 40px}.hero-scene{aspect-ratio:1.65}.hero-scene figcaption{bottom:12px;right:12px}}
@media(max-width:560px){.wrap{width:calc(100% - 32px)}.bar{flex-wrap:wrap;padding-block:14px;min-height:0}nav{gap:8px 16px;font-size:17px}.grid,.brief{grid-template-columns:1fr}.section{padding-block:53px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Field project cards and photo gallery */
.projects .project-card > img { aspect-ratio: 1.5; }
.projects .project-card .copy { min-height: 150px; }
.additional-photos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
  padding: 19px 20px;
  border: 1px solid #cbd5c7;
  border-radius: 5px;
}
.additional-photos h3 { font-size: 22px; }
.additional-photos .detail { margin: 0; padding: 0; }
#project-gallery { width: min(970px, calc(100% - 28px)); }
.gallery-header, .gallery-photos { padding-inline: 22px; }
.gallery-header h2 { font-size: clamp(28px, 4.4vw, 49px); }
.gallery-header p { color: #506356; margin: 10px 0 18px; }
.gallery-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.gallery-photos figure { margin: 0; min-width: 0; }
.gallery-photos figure:only-child { grid-column: 1 / -1; }
.gallery-photos a { display: block; background: #edf0e9; }
.gallery-photos img { height: clamp(180px, 29vw, 340px); object-fit: contain; }
.gallery-photos figcaption { padding-top: 6px; color: #405549; font-size: 14px; }
@media (max-width: 620px) {
  .gallery-photos { grid-template-columns: 1fr; }
  .gallery-photos img { height: auto; max-height: 65vh; }
}

#project-gallery .dialog-bar { position: sticky; top: 0; background: white; z-index: 1; }

/* Approved XIANGGROW brand */
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { width: clamp(190px, 20vw, 246px); height: auto; object-fit: contain; }
footer .brand { margin-block: 12px; }
footer .brand img { width: 182px; filter: brightness(0) invert(1); }
.product-media { position: relative; }
.product-stamp {
  position: absolute;
  top: 8px;
  left: 8px;
  width: min(114px, 39%);
  aspect-ratio: 3.65;
  background: #fffffff5 url("assets/xianggrow-logo.png") center / calc(100% - 12px) auto no-repeat;
  border: 1px solid #d9e1d5;
  border-radius: 4px;
  pointer-events: none;
}
#product-detail .product-media { margin-bottom: 18px; }
#product-detail .product-media img { margin-bottom: 0; }
@media (max-width: 680px) {
  header .bar { flex-wrap: wrap; gap: 9px 16px; padding-block: 12px; }
  .brand img { width: 200px; }
}


.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; }
.footer-links .social-link { color: var(--lime); font-weight: 700; }
@media (max-width: 560px) { footer .bar { padding-bottom: 20px; } }
.contact-panel {
  padding-block: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid #ffffff26;
  background: linear-gradient(110deg, #142a22f5 12%, #142a22d9 100%),
    url("assets/projects/kunshan-equipment.webp") center 55% / cover;
}
.contact-panel h2 { margin-bottom: clamp(24px, 4vw, 44px); }
.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  font-style: normal;
}
.contact-details > div { padding-top: 16px; border-top: 1px solid #ffffff50; }
.contact-details h3 { font-size: 20px; letter-spacing: -.015em; }
.contact-details p { margin: 8px 0 0; color: #f4f7ed; overflow-wrap: anywhere; }
.contact-details a { text-decoration: underline; text-underline-offset: .18em; }
.contact-details .contact-whatsapp { color: var(--lime); }
@media (max-width: 640px) { .contact-details { grid-template-columns: 1fr; } }

.featured-videos { padding-block: clamp(42px, 5vw, 66px) 0; }
.videos-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 20px;
  margin-bottom: 21px;
}
.videos-header h2 { font-size: clamp(32px, 4vw, 52px); }
.videos-header a { color: var(--green); font-weight: 700; }
.videos-header a:hover, .video-external:hover { text-decoration: underline; }
.video-preview {
  display: grid;
  place-items: center;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.video-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play, .video-duration {
  position: relative;
  color: white;
  background: #142a22ed;
  font-weight: 700;
}
.video-play { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #fff8; border-radius: 50%; }
.video-preview:hover .video-play, .video-preview:focus-visible .video-play { background: var(--lime); color: var(--ink); }
.video-duration { position: absolute; right: 9px; bottom: 9px; padding: 1px 6px; border-radius: 3px; font-size: 13px; }
.video-card h3 { font-size: 20px; padding: 15px 16px 17px; letter-spacing: -.025em; }
#video-dialog { width: min(850px, calc(100% - 24px)); }
.video-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; gap: 12px; }
.video-dialog-header h2 { font-size: clamp(17px, 3.5vw, 24px); }
.video-dialog-header button { border: 0; background: none; font-size: 27px; line-height: 1; padding: 5px; }
.video-player { aspect-ratio: 16 / 9; background: #101814; }
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-external { display: inline-block; margin: 10px 14px; color: var(--green); font-weight: 700; }

.copy .product-page-link { margin-top: 5px; }

.product-photo-zoom { display: block; position: relative; cursor: zoom-in; }
.product-photo-zoom:focus-visible { outline-offset: -3px; }
.photo-zoom-label {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font-size: .875rem;
  font-weight: 700;
}
.product-photo-zoom:hover .photo-zoom-label,
.product-photo-zoom:focus-visible .photo-zoom-label { background: var(--lime); color: var(--ink); }
#project-gallery.photo-zoom { width: min(1100px, calc(100% - 24px)); }
.photo-zoom .gallery-header { padding-bottom: 14px; }
.photo-zoom .gallery-photos img { height: auto; max-height: 68vh; }
.photo-zoom .gallery-photos figcaption { display: none; }

.product-photo-zoom.product-clip { cursor: pointer; }
.video-player.local-video { aspect-ratio: auto; }
.video-player video { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.video-external[hidden] { display: none; }

.factory { background: #17352b; color: white; }
.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4.5vw, 64px);
}
.factory-copy p { color: #e6ede4; margin: 0 0 16px; }
.factory-copy h2 + p { margin-top: 22px; font-size: 1.125rem; }
.factory-copy p:last-of-type { margin-bottom: 24px; }
.factory-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.factory-photo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  background: #f7f7ef;
  color: var(--ink);
  border-radius: 5px;
}
.factory-photo-main { grid-column: 1 / -1; }
.factory-photo img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.factory-photo figcaption { padding: 9px 12px 11px; font-size: .875rem; font-weight: 700; }
@media (max-width: 800px) {
  .factory-layout { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .factory-photos { grid-template-columns: 1fr; }
}
