@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #081725;
  --ink-2: #112638;
  --paper: #f5f2e9;
  --white: #fff;
  --muted: #65717c;
  --line: rgba(8, 23, 37, .14);
  --red: #c82332;
  --red-dark: #a31824;
  --sand: #d8caaa;
  --max: 1240px;
  --shadow: 0 24px 70px rgba(8, 23, 37, .14);
  --sans: "Jost", "Futura PT", Futura, "Century Gothic", Arial, sans-serif;
  --serif: var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.55 var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.shell { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.eyebrow { margin: 0 0 16px; color: var(--red); font-size: .73rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 500; letter-spacing: -.025em; line-height: 1.02; }
h1 { max-width: 950px; font-size: clamp(3.15rem, 7.2vw, 7.4rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 4.8rem); }
h3 { font-size: clamp(1.35rem, 2vw, 2rem); }
p { margin: 0; }
.lead { max-width: 720px; color: #d9e2e8; font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.section-lead { max-width: 700px; margin-top: 24px; color: var(--muted); font-size: 1.08rem; }
.site-header { position: fixed; z-index: 50; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(255,255,255,.15); color: #fff; transition: .25s ease; }
.site-header.scrolled, .site-header.inner { border-color: var(--line); color: var(--ink); background: rgba(245,242,233,.95); backdrop-filter: blur(16px); }
.header-row { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-copy span { display: block; opacity: .72; font-size: .55rem; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 38px); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nav a { position: relative; }
.nav a:not(.button)::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 2px; background: var(--red); content: ""; transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; background: var(--red); color: #fff; cursor: pointer; font-size: .77rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: .2s; }
.button:hover { background: var(--red-dark); transform: translateY(-2px); }
.button.ghost { border-color: rgba(255,255,255,.55); background: transparent; }
.button.ghost:hover { border-color: #fff; background: #fff; color: var(--ink); }
.button.dark { background: var(--ink); }
.button.dark:hover { background: var(--ink-2); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: currentColor; cursor: pointer; font-size: 1.5rem; }

.hero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--ink); }
.hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,16,27,.9) 0%, rgba(5,16,27,.52) 47%, rgba(5,16,27,.18) 100%), linear-gradient(0deg, rgba(5,16,27,.72), transparent 55%); content: ""; }
.hero-media { position: absolute; inset: 0; height: 100%; object-fit: cover; animation: reveal 1.2s ease both; }
.hero-content { position: relative; z-index: 2; padding: 170px 0 86px; }
.hero h1 { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-note { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max))/2)); bottom: 40px; display: grid; grid-template-columns: auto auto; gap: 9px 20px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.hero-note span { opacity: .65; }

.section { padding: clamp(80px, 10vw, 150px) 0; }
.section.white { background: #fff; }
.section.dark { color: #fff; background: var(--ink); }
.section.dark .section-lead { color: #bac6ce; }
.section-head { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: end; margin-bottom: 56px; }
.section-head .section-lead { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.image-card { position: relative; min-height: 430px; grid-column: span 4; overflow: hidden; background: var(--ink); color: #fff; }
.image-card.wide { grid-column: span 8; }
.image-card.full { grid-column: span 12; }
.image-card img { position: absolute; inset: 0; height: 100%; object-fit: cover; transition: transform .6s ease; }
.image-card.cinema-card img { object-fit: cover; object-position: center; padding: 0; background: #17100f; }
.image-card::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,16,27,.88), transparent 72%); content: ""; }
.image-card:hover img { transform: scale(1.035); }
.card-copy { position: absolute; z-index: 2; right: 26px; bottom: 26px; left: 26px; }
.card-copy p { margin-top: 10px; color: #d4dde3; font-size: .92rem; }
.card-index { position: absolute; z-index: 2; top: 24px; left: 24px; color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.arrow-link::after { content: "→"; transition: transform .2s; }
.arrow-link:hover::after { transform: translateX(5px); }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-height: 270px; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service span { display: block; margin-bottom: 50px; color: var(--red); font: 500 2.2rem/1 var(--sans); }
.service p { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid rgba(255,255,255,.22); }
.stat { padding: 34px 28px 0 0; }
.stat strong { display: block; font: 500 clamp(2.5rem, 5vw, 5rem)/1 var(--sans); }
.stat span { display: block; margin-top: 12px; color: #aebbc4; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; }
.split-media { min-height: 650px; object-fit: cover; box-shadow: var(--shadow); }
.check-list { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.check-list div { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-list span { color: var(--red); font-weight: 900; }

.cta-band { padding: 72px 0; background: var(--red); color: #fff; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-row h2 { max-width: 760px; font-size: clamp(2.2rem, 4.5vw, 4.8rem); }
.cta-row .button { border-color: #fff; background: #fff; color: var(--red); }

.page-hero { padding: 190px 0 95px; color: #fff; background: var(--ink); }
.page-hero h1 { font-size: clamp(3.4rem, 7vw, 6.8rem); }
.page-hero .lead { margin-top: 28px; }
.page-hero.image { position: relative; min-height: 74vh; display: flex; align-items: end; overflow: hidden; }
.page-hero.image::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,16,27,.91), rgba(5,16,27,.34)); content: ""; }
.page-hero.image img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.page-hero.image .shell { position: relative; z-index: 2; }
.breadcrumbs { margin-bottom: 48px; color: #b9c5cc; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.product-list { display: grid; gap: 48px; }
.product-row { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; background: #fff; box-shadow: 0 18px 50px rgba(8,23,37,.08); }
.product-row:nth-child(even) .product-image { order: 2; }
.product-image { height: 100%; min-height: 450px; object-fit: cover; }
.product-image.catalog-sheet { object-fit: contain; background: #fff; }
.product-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(35px, 6vw, 76px); }
.product-copy .meta { margin: 18px 0 26px; color: var(--red); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-copy p { color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.spec { padding-top: 14px; border-top: 1px solid var(--line); }
.spec strong { display: block; font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.spec span { color: var(--muted); font-size: .85rem; }

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { background: #fff; }
.project img { aspect-ratio: 16/11; object-fit: cover; }
.project-copy { padding: 30px; }
.project-copy .meta { margin-bottom: 10px; color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.project-copy p { margin-top: 12px; color: var(--muted); }
.truth-note { max-width: 760px; margin: 50px 0 0 auto; padding: 26px 30px; border-left: 3px solid var(--red); background: #fff; color: var(--muted); }

.proof-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.proof-card { grid-column: span 6; overflow: hidden; background: #fff; box-shadow: 0 16px 44px rgba(8,23,37,.08); }
.proof-card:nth-child(3n) { grid-column: span 12; }
.proof-card img { aspect-ratio: 16/10; object-fit: cover; }
.proof-copy { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 24px 28px 28px; }
.proof-number { color: var(--red); font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.proof-copy p { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.proof-badge { display: inline-flex; margin-top: 14px; padding: 5px 9px; background: #eef1ed; color: #45524b; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.catalog-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 54px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog-card { overflow: hidden; background: #fff; box-shadow: 0 16px 42px rgba(8,23,37,.08); }
.catalog-visual { position: relative; height: 390px; overflow: hidden; background: #d8c8a4; }
.catalog-visual img { position: absolute; width: 200%; max-width: none; height: 100%; object-fit: cover; object-position: left center; }
.catalog-visual.church-photo img { width: 100%; object-position: center; }
.catalog-code { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 7px 10px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; }
.catalog-copy { padding: 25px; }
.catalog-copy h3 { font-size: 1.45rem; }
.catalog-copy p { margin-top: 12px; color: var(--muted); font-size: .88rem; }
.catalog-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.catalog-meta span { padding: 5px 8px; border: 1px solid var(--line); color: #475560; font-size: .63rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.catalog-note { margin-top: 42px; padding: 26px 30px; border-left: 3px solid var(--red); background: #fff; color: var(--muted); }

.form-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 120px); align-items: start; }
.contact-stack { display: grid; gap: 25px; margin-top: 40px; }
.contact-item { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.contact-item span { display: block; color: var(--muted); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.contact-item a, .contact-item strong { display: block; margin-top: 6px; font-size: 1.05rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(28px, 5vw, 58px); background: #fff; box-shadow: var(--shadow); }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #cbd1d5; border-radius: 0; background: #fff; padding: 13px 14px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,35,50,.1); }
.field textarea { min-height: 135px; resize: vertical; }
.form-note { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; }
.form-status { grid-column: 1 / -1; min-height: 24px; color: var(--red); font-size: .9rem; }

.footer { padding: 72px 0 34px; color: #fff; background: #06111c; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 60px; }
.footer h3 { max-width: 420px; }
.footer-label { margin-bottom: 17px; color: #7f909c; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; color: #d5dde2; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 70px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: #7f909c; font-size: .72rem; }

@keyframes reveal { from { transform: scale(1.04); opacity: .55; } to { transform: scale(1); opacity: 1; } }
@media (max-width: 980px) {
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 88vw); padding: 110px 36px 40px; flex-direction: column; align-items: flex-start; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .3s; }
  .nav.open { transform: translateX(0); }
  .nav .button { width: 100%; }
  .menu-toggle { position: relative; z-index: 2; display: block; }
  .section-head { grid-template-columns: 1fr; gap: 25px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .image-card, .image-card.wide { grid-column: span 6; }
  .form-layout { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 32px, var(--max)); }
  .header-row { min-height: 72px; }
  .brand-copy { display: none; }
  .hero-content { padding: 140px 0 180px; }
  .hero-note { right: 16px; bottom: 28px; left: 16px; }
  .cards, .project-grid { grid-template-columns: 1fr; }
  .proof-grid, .catalog-grid, .catalog-intro { grid-template-columns: 1fr; }
  .proof-card, .proof-card:nth-child(3n) { grid-column: 1; }
  .image-card, .image-card.wide, .image-card.full { min-height: 390px; grid-column: 1; }
  .service-grid, .stats, .split, .product-row { grid-template-columns: 1fr; }
  .service { min-height: 220px; }
  .service span { margin-bottom: 30px; }
  .stats { gap: 22px; }
  .split-media { min-height: 440px; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .product-row:nth-child(even) .product-image { order: 0; }
  .specs { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Product catalog and second-level product details */
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 70px; align-items: end; }
.product-hero-grid .lead { margin: 0; }
.products-section, .product-detail-section { background: #f1eee5; }
.product-index-intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: 60px; align-items: end; margin-bottom: 36px; }
.product-index-intro h2 { font-family: var(--serif); font-size: 52px; line-height: 1; margin: 0; }
.product-index-intro > p { margin: 0; color: var(--steel); max-width: 670px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.product-card-image { position: relative; display: block; aspect-ratio: 1 / 1; background: #f7f6f1; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card-image:hover img { transform: scale(1.035); }
.product-card-image > span { position: absolute; left: 14px; top: 14px; background: var(--navy); color: #fff; padding: 8px 10px; font: 800 11px/1 var(--sans); letter-spacing: .12em; }
.product-card-copy { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-card-copy h3 { font-family: var(--serif); font-size: 29px; margin: 3px 0 14px; }
.product-card-copy h3 a { color: var(--navy); }
.product-kicker { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0; }
.product-card-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.product-card-meta span { border: 1px solid var(--line); padding: 7px 8px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.product-card-copy .arrow-link { margin-top: auto; }
.product-data-note { background: var(--navy); color: #fff; }
.product-data-note .split p { color: #cbd4dc; }
.page-hero.compact { padding-bottom: 28px; }
.page-hero.compact .breadcrumbs { margin: 0; }
.breadcrumbs a { color: inherit; }
.product-detail-section { padding-top: 38px; }
.product-detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-bottom: 34px; }
.product-detail-heading h1 { font-family: var(--serif); font-size: clamp(48px, 6vw, 82px); line-height: .95; margin: 8px 0 20px; }
.product-detail-heading .lead { max-width: 850px; color: var(--steel); }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 28px; align-items: start; }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-gallery figure { background: #fff; border: 1px solid var(--line); margin: 0; min-height: 290px; }
.product-gallery-main { grid-column: 1 / -1; }
.product-gallery img { display: block; width: 100%; height: 100%; max-height: 650px; object-fit: contain; }
.product-specs { background: #fff; border-top: 5px solid var(--navy); padding: 28px; position: sticky; top: 105px; }
.product-specs dl { margin: 18px 0 24px; }
.product-specs dl > div { display: grid; grid-template-columns: 125px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.product-specs dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-specs dd { margin: 0; color: var(--steel); }
.spec-note { color: var(--steel); font-size: 14px; }
.product-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.product-pagination a:nth-child(2) { text-align: center; }
.product-pagination a:last-child { text-align: right; }
.brand img[src*="yijian-official-mark"] { background: #fff; object-fit: contain; border-radius: 2px; }
@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-specs { position: static; }
  .product-hero-grid, .product-index-intro { gap: 36px; }
}
@media (max-width: 760px) {
  .product-hero-grid, .product-index-intro, .product-detail-heading { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-gallery { grid-template-columns: 1fr; }
  .product-gallery-main { grid-column: auto; }
  .product-pagination { grid-template-columns: 1fr; }
  .product-pagination a, .product-pagination a:nth-child(2), .product-pagination a:last-child { text-align: left; }
  .product-detail-heading h1 { font-size: 50px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card-image { aspect-ratio: 4 / 3; }
}


/* Products page contrast and verified contact footer */
.product-data-note { background: #071a2a !important; color: #fff !important; }
.product-data-note h2 { color: #fff !important; }
.product-data-note .eyebrow { color: #ef5261 !important; }
.product-data-note .split > p { color: #e1e8ed !important; }
.footer { border-top: 6px solid var(--red); }
.footer-heading { color: #fff; font-size: clamp(30px, 3.2vw, 48px); max-width: 520px; }
.footer-intro { color: #d5dde2; max-width: 560px; }
.footer-links a { display: block; color: #f5f7f8; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-contact { overflow-wrap: anywhere; }
.footer-contact p { margin: 0; color: #d5dde2; line-height: 1.7; }
@media (max-width: 720px) {
  .footer { padding-top: 54px; }
  .footer-grid { gap: 38px; }
}
