/*
Theme Name: YAOCHUAN PVC Flooring
Theme URI: https://www.yaochuan.jp
Author: YAOCHUAN CO., LTD.
Author URI: https://www.yaochuan.jp
Description: A responsive English company homepage for YAOCHUAN PVC flooring products and global B2B enquiries.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yaochuan
*/

:root {
  --navy: #062947;
  --navy-2: #0a3a60;
  --ink: #102132;
  --gold: #d8ad23;
  --gold-2: #f0c848;
  --cream: #f7f4ed;
  --mist: #edf3f6;
  --white: #fff;
  --muted: #657584;
  --green: #16a862;
  --shadow: 0 20px 55px rgba(3, 36, 62, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, "Helvetica Neue", Arial, sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-kicker { margin: 0 0 12px; color: #a27e05; font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.section-title { max-width: 760px; margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.035em; }
.section-intro { max-width: 690px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: var(--navy); background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 12px 30px rgba(216,173,35,.3); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }

.site-header { position: sticky; z-index: 50; top: 0; height: 82px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--white); background: rgba(5,37,63,.94); backdrop-filter: blur(14px); }
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 230px; }
.brand-mark { position: relative; width: 53px; height: 36px; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; top: 2px; width: 31px; height: 31px; border: 5px solid var(--white); border-radius: 50%; }
.brand-mark::before { left: 2px; }
.brand-mark::after { right: 2px; border-color: var(--gold); }
.brand-word { display: block; font-size: 22px; font-weight: 800; letter-spacing: .2em; line-height: 1; }
.brand-jp { display: block; margin-top: 6px; color: rgba(255,255,255,.6); font-size: 10px; letter-spacing: .32em; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.main-nav a:not(.nav-cta) { color: rgba(255,255,255,.82); }
.main-nav a:hover { color: var(--gold-2); }
.nav-cta { padding: 10px 18px; color: var(--navy); background: var(--gold-2); border-radius: 999px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; color: var(--white); background: transparent; font-size: 26px; }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; color: var(--white); background: var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,31,54,.98) 0%, rgba(3,31,54,.88) 38%, rgba(3,31,54,.18) 70%, rgba(3,31,54,.06) 100%), url("assets/images/hero-pvc-flooring.webp") center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(transparent, rgba(3,31,54,.52)); }
.hero-content { position: relative; z-index: 2; width: min(700px, 64%); padding: 100px 0 120px; }
.hero-badge { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 24px; padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 6px rgba(240,200,72,.13); }
.hero h1 { margin: 0; font-size: clamp(52px, 6.8vw, 92px); line-height: .98; letter-spacing: -.05em; }
.hero h1 span { display: block; color: var(--gold-2); }
.hero p { max-width: 650px; margin: 28px 0 34px; color: rgba(255,255,255,.78); font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-note { margin-top: 24px; color: rgba(255,255,255,.6); font-size: 13px; }

.trust-strip { position: relative; z-index: 4; margin-top: -54px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.trust-item { padding: 28px 24px; border-right: 1px solid #e5ebee; }
.trust-item:last-child { border: 0; }
.trust-value { display: block; color: var(--navy); font-size: 24px; font-weight: 900; }
.trust-label { color: var(--muted); font-size: 13px; }

.products { background: var(--cream); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: 100%; margin-top: 48px; }
.product-card { position: relative; overflow: hidden; min-height: 470px; border-radius: var(--radius); color: var(--white); background: var(--navy); box-shadow: var(--shadow); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(3,29,50,.94) 100%); }
.product-copy { position: absolute; z-index: 2; inset: auto 28px 28px; }
.product-copy h3 { margin: 0 0 8px; font-size: 27px; line-height: 1.15; }
.product-copy p { margin: 0; color: rgba(255,255,255,.72); font-size: 14px; }
.product-card:nth-child(1) { grid-column: span 2; }
.product-card:nth-child(1) img { object-position: 50% 27%; }
.product-grid > .product-card.commercial-wide { grid-column: 1 / span 3; width: 100%; max-width: none; min-height: 410px; background: #f5f1e9; }
.product-card.commercial-wide img { width: 100%; object-fit: cover; object-position: center 50%; }
.product-card.commercial-wide::after { background: linear-gradient(90deg, rgba(3,29,50,.96) 0%, rgba(3,29,50,.72) 32%, rgba(3,29,50,.08) 68%, transparent 100%); }
.product-card.commercial-wide .product-copy { inset: auto auto 36px 36px; width: min(440px, 78%); }

.capabilities { background: var(--white); }
.cap-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.cap-image { position: relative; }
.cap-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.cap-image::after { content: "FACTORY DIRECT"; position: absolute; right: -24px; bottom: 32px; padding: 14px 22px; border-radius: 10px 0 0 10px; color: var(--navy); background: var(--gold-2); font-weight: 900; letter-spacing: .12em; }
.cap-list { display: grid; gap: 12px; margin-top: 38px; }
.cap-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px; border: 1px solid #dfe8ec; border-radius: 16px; background: #fbfcfc; }
.cap-num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: var(--gold-2); font-weight: 900; }
.cap-item h3 { margin: 0 0 3px; color: var(--navy); font-size: 18px; }
.cap-item p { margin: 0; color: var(--muted); font-size: 14px; }

.applications { overflow: hidden; color: var(--white); background: var(--navy); }
.applications .section-title { color: var(--white); }
.applications .section-intro { color: rgba(255,255,255,.66); }
.applications-image { position: relative; margin-top: 46px; overflow: hidden; border-radius: var(--radius); box-shadow: 0 22px 70px rgba(0,0,0,.28); }
.applications-image img { width: 100%; aspect-ratio: 16/6.4; object-fit: cover; }
.application-labels { display: grid; grid-template-columns: repeat(4, 1fr); }
.application-labels span { padding: 17px; text-align: center; border-right: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.07); font-weight: 800; }

.residential { background: var(--cream); }
.residential-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.residential-heading .section-intro { margin-bottom: 6px; }
.residential-image { margin-top: 46px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.residential-image img { width: 100%; aspect-ratio: 16/6.7; object-fit: cover; }
.residential-labels { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 0 0 18px 18px; background: var(--white); box-shadow: var(--shadow); }
.residential-labels span { display: grid; gap: 2px; padding: 18px 20px; border-right: 1px solid #e2e8eb; color: var(--muted); font-size: 12px; }
.residential-labels span:last-child { border: 0; }
.residential-labels b { color: var(--navy); font-size: 16px; }

.factory { background: var(--mist); }
.factory-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 250px 250px; gap: 18px; margin-top: 48px; }
.factory-shot { position: relative; overflow: hidden; border-radius: 18px; }
.factory-shot:first-child { grid-row: 1 / 3; }
.factory-shot img { width: 100%; height: 100%; object-fit: cover; }
.factory-shot::after { content: attr(data-label); position: absolute; left: 16px; bottom: 16px; padding: 9px 13px; border-radius: 999px; color: var(--white); background: rgba(3,31,54,.84); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.factory-note { margin-top: 18px; color: var(--muted); font-size: 13px; }

.process { background: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.step { position: relative; padding: 30px 24px; border-radius: 18px; background: var(--cream); }
.step-number { color: var(--gold); font-size: 42px; font-weight: 900; line-height: 1; }
.step h3 { margin: 18px 0 8px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.cta-section { padding: 80px 0; background: linear-gradient(120deg, var(--gold-2), #d49d05); }
.cta-box { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-box h2 { margin: 0; color: var(--navy); font-size: clamp(34px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -.04em; }
.cta-box p { margin: 16px 0 0; color: rgba(6,41,71,.72); }
.cta-box .btn { min-width: 230px; color: var(--white); background: var(--navy); box-shadow: 0 15px 35px rgba(6,41,71,.25); }

.site-footer { padding: 64px 0 25px; color: rgba(255,255,255,.7); background: #031f36; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .8fr; gap: 70px; }
.footer-brand { color: var(--white); font-size: 28px; font-weight: 900; letter-spacing: .18em; }
.footer-copy { max-width: 430px; margin: 18px 0 0; }
.footer-title { margin: 0 0 16px; color: var(--gold-2); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.whatsapp-float { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 999px; color: var(--white); background: var(--green); box-shadow: 0 12px 30px rgba(22,168,98,.34); font-weight: 800; }
.whatsapp-float::before { content: "✆"; display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid currentColor; border-radius: 50%; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 82px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 20px; background: var(--navy); box-shadow: var(--shadow); }
  .menu-open .main-nav { display: flex; }
  .main-nav a { padding: 15px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .nav-cta { margin-top: 10px; text-align: center; }
  .hero { min-height: 720px; }
  .hero::before { background: linear-gradient(90deg, rgba(3,31,54,.96) 0%, rgba(3,31,54,.82) 55%, rgba(3,31,54,.28) 100%), url("assets/images/hero-pvc-flooring.webp") 58% center/cover no-repeat; }
  .hero-content { width: 78%; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid #e5ebee; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card:nth-child(1) { grid-column: span 2; }
  .product-grid > .product-card.commercial-wide { grid-column: 1 / -1; }
  .cap-layout { grid-template-columns: 1fr; }
  .cap-image img { aspect-ratio: 16/9; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .residential-heading { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: span 2; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 72px 0; }
  .brand { min-width: 0; }
  .brand-word { font-size: 18px; }
  .brand-jp { display: none; }
  .hero { min-height: 700px; align-items: flex-end; }
  .hero::before { background: linear-gradient(180deg, rgba(3,31,54,.28) 0%, rgba(3,31,54,.72) 45%, rgba(3,31,54,.98) 74%), url("assets/images/hero-pvc-flooring.webp") 64% top/auto 52% no-repeat, var(--navy); }
  .hero-content { width: 100%; padding: 260px 0 85px; }
  .hero h1 { font-size: 50px; }
  .hero-actions .btn { width: 100%; }
  .trust-strip { margin-top: -34px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 21px 16px; }
  .trust-value { font-size: 19px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card:nth-child(1) { grid-column: auto; min-height: 390px; }
  .product-grid > .product-card.commercial-wide { grid-column: auto; min-height: 430px; }
  .product-card.commercial-wide img { object-fit: cover; object-position: center; }
  .product-card.commercial-wide::after { background: linear-gradient(180deg, transparent 35%, rgba(3,29,50,.95) 100%); }
  .cap-image::after { right: 0; }
  .applications-image img { aspect-ratio: 4/5; object-position: left; }
  .application-labels { grid-template-columns: 1fr 1fr; }
  .application-labels span { border-bottom: 1px solid rgba(255,255,255,.12); }
  .residential-image img { aspect-ratio: 4/5; object-position: left; }
  .residential-labels { grid-template-columns: 1fr 1fr; }
  .residential-labels span { border-bottom: 1px solid #e2e8eb; }
  .factory-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 250px); }
  .factory-shot:first-child { grid-row: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-box .btn { width: 100%; }
  .footer-grid, .footer-grid > :first-child { grid-template-columns: 1fr; grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { right: 16px; bottom: 16px; padding: 13px; }
}
