/* ===========================================
   JO1S Uniform — 日系雜誌風 官方網站
   配色：米白 #F5F1EA / 深咖啡 #4A3520 / 墨黑 #2B2419
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

:root {
  --bg: #F5F1EA;
  --bg-soft: #EFEAE0;
  --ink: #2B2419;
  --ink-soft: #6B5D4E;
  --brown: #4A3520;
  --line: #D9D1C1;
  --accent: #B89968;
  --white: #FFFFFF;

  --serif: 'Noto Serif TC', 'Cormorant Garamond', serif;
  --sans: 'Noto Sans TC', -apple-system, sans-serif;
  --display: 'Cormorant Garamond', 'Noto Serif TC', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.6; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }

section { padding: 120px 0; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; max-width: 1400px; margin: 0 auto;
}
.nav-logo img { height: 32px; }
.nav-logo .brand-text {
  font-family: var(--display);
  font-size: 22px; font-weight: 500;
  color: var(--brown); letter-spacing: 0.15em;
}
.nav-menu {
  display: flex; gap: 40px; list-style: none;
  font-family: var(--serif);
  font-size: 14px; font-weight: 400;
  letter-spacing: 0.2em;
}
.nav-menu a { color: var(--ink); position: relative; }
.nav-menu a.active::after,
.nav-menu a:hover::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 100%; height: 1px; background: var(--brown);
}
.nav-cta {
  font-family: var(--serif);
  font-size: 13px; letter-spacing: 0.2em;
  padding: 10px 24px; border: 1px solid var(--brown);
  color: var(--brown); border-radius: 0;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--brown); color: var(--bg); opacity: 1; }

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--serif);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 24px;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 400; line-height: 1.25; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
h3 { font-size: 22px; margin-bottom: 16px; }

.display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: 0.05em;
}

p { font-size: 15px; color: var(--ink-soft); }
p.lead { font-size: 17px; color: var(--ink); line-height: 2; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.hero-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 60px 80px 80px;
}
.hero-text .eyebrow { margin-bottom: 40px; }
.hero-text h1 { margin-bottom: 32px; }
.hero-text h1 .accent {
  font-family: var(--display);
  font-style: italic;
  color: var(--brown);
  font-weight: 300;
}
.hero-text .sub {
  font-family: var(--serif);
  font-size: 14px; letter-spacing: 0.3em;
  color: var(--ink-soft);
  margin-bottom: 48px;
}
.hero-img {
  background-size: cover; background-position: center;
  position: relative;
}
.hero-img::after {
  content: 'JO1S'; position: absolute; bottom: 40px; right: 40px;
  font-family: var(--display); font-size: 14px;
  letter-spacing: 0.4em; color: var(--white);
  writing-mode: vertical-rl;
}

/* Vertical text decoration */
.vertical-jp {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13px; letter-spacing: 0.4em;
  color: var(--ink-soft);
  position: absolute;
  top: 80px; right: 40px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px; letter-spacing: 0.25em;
  padding: 16px 40px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s;
}
.btn:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.btn-primary { background: var(--brown); color: var(--bg); border-color: var(--brown); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-link {
  font-family: var(--serif); font-size: 14px;
  letter-spacing: 0.25em; color: var(--brown);
  border-bottom: 1px solid var(--brown);
  padding-bottom: 4px;
}

/* ===== Stats ===== */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 60px; padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stat-num {
  font-family: var(--display);
  font-size: 56px; font-weight: 300;
  color: var(--brown); line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-family: var(--serif);
  font-size: 13px; letter-spacing: 0.3em;
  color: var(--ink-soft);
}

/* ===== Section Header ===== */
.section-header { text-align: center; margin-bottom: 80px; }
.section-header.left { text-align: left; }
.section-header .jp-label {
  font-family: var(--display); font-style: italic;
  font-size: 18px; color: var(--accent);
  margin-bottom: 16px;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 32px;
}
.product-card {
  background: var(--white);
  position: relative;
}
.product-card .img-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-soft);
}
.product-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.product-card:hover img { transform: scale(1.03); }
.product-card .info {
  padding: 20px 4px 32px;
}
.product-card .num {
  font-family: var(--display); font-style: italic;
  font-size: 14px; color: var(--accent);
  margin-bottom: 6px;
}
.product-card .name {
  font-family: var(--serif);
  font-size: 15px; letter-spacing: 0.1em;
  color: var(--ink);
}

/* ===== Clients ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 40px;
  align-items: center;
  justify-items: center;
  padding: 40px 0;
}
.clients-grid img {
  max-height: 70px;
  width: auto;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.4s;
}
.clients-grid img:hover {
  filter: grayscale(0%) opacity(1);
}
.clients-text {
  margin-top: 60px;
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  line-height: 2.4;
}

/* ===== Process ===== */
.process-list { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-family: var(--display);
  font-size: 42px; font-weight: 300;
  font-style: italic;
  color: var(--brown);
  line-height: 1;
}
.process-step h3 {
  font-size: 22px; margin-bottom: 12px;
}
.process-step p { font-size: 15px; max-width: 600px; }

/* ===== Two Column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col img { aspect-ratio: 4/5; object-fit: cover; }

/* ===== About ===== */
.about-intro {
  max-width: 760px; margin: 0 auto;
  text-align: center;
}
.about-intro .logo-block {
  margin: 0 auto 60px;
  width: 200px;
}
.about-meta {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
.about-meta dt {
  font-family: var(--serif);
  font-size: 12px; letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 12px;
}
.about-meta dd {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-info dl { margin-bottom: 32px; }
.contact-info dt {
  font-family: var(--display); font-style: italic;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
}
.contact-info dd {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.line-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #06C755; color: white;
  padding: 14px 28px;
  font-family: var(--serif); font-size: 14px;
  letter-spacing: 0.2em;
  margin-top: 12px;
}
.line-btn:hover { opacity: 0.85; }

.contact-form { background: var(--bg-soft); padding: 48px; }
.contact-form .form-group { margin-bottom: 24px; }
.contact-form label {
  display: block;
  font-family: var(--serif);
  font-size: 12px; letter-spacing: 0.25em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  letter-spacing: 0.05em;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--brown); }
.contact-form textarea { resize: vertical; min-height: 100px; }

/* ===== FAQ ===== */
.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: var(--serif);
  font-size: 17px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 16px;
}
.faq-q::before {
  content: 'Q'; font-family: var(--display);
  font-style: italic; color: var(--accent);
  font-size: 22px;
}
.faq-a {
  padding-left: 36px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 80px 0 32px;
  margin-top: 80px;
}
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; }
footer h4 {
  font-family: var(--serif);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
footer p, footer a { color: rgba(245, 241, 234, 0.7); font-size: 14px; line-height: 2; }
footer a:hover { color: var(--bg); opacity: 1; }
footer .brand {
  font-family: var(--display);
  font-size: 32px;
  color: var(--bg);
  margin-bottom: 12px;
  letter-spacing: 0.2em;
}
.footer-bottom {
  max-width: 1200px; margin: 60px auto 0; padding: 24px 40px 0;
  border-top: 1px solid rgba(245, 241, 234, 0.15);
  font-family: var(--serif); font-size: 12px;
  color: rgba(245, 241, 234, 0.5);
  letter-spacing: 0.2em;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container, .container-narrow { padding: 0 24px; }
  section { padding: 80px 0; }
  .nav-inner { padding: 16px 24px; }
  .nav-menu { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 60px 24px; }
  .hero-img { aspect-ratio: 4/3; }
  .stats { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 16px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-meta { grid-template-columns: 1fr 1fr; }
  footer .container { grid-template-columns: 1fr; gap: 40px; }
  .process-step { grid-template-columns: 60px 1fr; gap: 24px; }
  .process-num { font-size: 32px; }
}
