/* ==========================================================================
   JIACHENG — Furniture & Home · Guangzhou
   Shared stylesheet for the site (style.css)
   Theme: deep warm-black / ivory / tangerine-wood joinery
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #F5EFE7;
  background-color: #171210;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: #E8C39A;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  color: #F5EFE7;
}

/* ---------- Scroll reveal (safe without JS) ---------- */
.fade-up {
  opacity: 1;
  transform: none;
}
html.js .fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Wood grain glyph (outline) ---------- */
.grain-mark {
  display: inline-block;
  width: 20px;
  height: 10px;
  background-image:
    linear-gradient(#B85C1F, #B85C1F) 0 0 / 20px 2px no-repeat,
    linear-gradient(#B85C1F, #B85C1F) 2px 4px / 15px 2px no-repeat,
    linear-gradient(#B85C1F, #B85C1F) 0 8px / 20px 2px no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 30px;
  border: 1px solid #B85C1F;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background-color: #B85C1F;
  color: #F5EFE7;
}
.btn-primary:hover {
  background-color: #A34E1A;
}
.btn-secondary {
  background-color: transparent;
  color: #B85C1F;
}
.btn-secondary:hover {
  background-color: #B85C1F;
  color: #F5EFE7;
}
.btn-ivory {
  background-color: #F5EFE7;
  color: #B85C1F;
  border-color: #F5EFE7;
}
.btn-ivory:hover {
  background-color: #E8C39A;
}

/* ==========================================================================
   GRAIN NAV
   ========================================================================== */
.grain-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #171210;
  border-bottom: 1px solid #B85C1F;
}
.grain-nav .grain-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.grain-nav .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.grain-nav .brand-glyph {
  flex: none;
  width: 18px;
  height: 18px;
  background-color: #B85C1F;
}
.grain-nav .brand-text {
  display: block;
}
.grain-nav .brand-word {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
  line-height: 1;
  color: #F5EFE7;
}
.grain-nav .brand-caption {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B85C1F;
  margin-top: 4px;
}
.grain-nav .grain-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.grain-nav .grain-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #F5EFE7;
}
.grain-nav .grain-links a:hover {
  color: #E8C39A;
}
.grain-nav .grain-links .grain-mark {
  width: 16px;
  height: 8px;
  background-image:
    linear-gradient(#B85C1F, #B85C1F) 0 0 / 16px 2px no-repeat,
    linear-gradient(#B85C1F, #B85C1F) 1px 3px / 12px 2px no-repeat,
    linear-gradient(#B85C1F, #B85C1F) 0 6px / 16px 2px no-repeat;
}
.grain-nav .grain-links a.active {
  color: #B85C1F;
}
.grain-nav .grain-links a.active .grain-mark {
  background-color: #B85C1F;
  background-image:
    linear-gradient(#F5EFE7, #F5EFE7) 0 1px / 16px 1px no-repeat,
    linear-gradient(#F5EFE7, #F5EFE7) 0 4px / 12px 1px no-repeat,
    linear-gradient(#F5EFE7, #F5EFE7) 0 7px / 16px 1px no-repeat;
}
.grain-nav .nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #B85C1F;
  cursor: pointer;
  padding: 0;
}
.grain-nav .nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #B85C1F;
}
.grain-nav .grain-drop {
  display: none;
}
.grain-nav .grain-drop.open {
  display: block;
  border-top: 1px solid #B85C1F;
  background-color: #171210;
}
.grain-nav .grain-drop a {
  display: block;
  padding: 15px 24px;
  color: #F5EFE7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid #2B211A;
}
.grain-nav .grain-drop a:last-child {
  border-bottom: none;
}
.grain-nav .grain-drop a:hover,
.grain-nav .grain-drop a.active {
  color: #B85C1F;
  background-color: #1D1612;
}

/* ==========================================================================
   JOINERY HERO
   ========================================================================== */
.joinery-hero {
  background-color: #171210;
  border-bottom: 1px solid #2B211A;
}
.joinery-hero .joinery-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 92px 24px 40px;
}
.joinery-hero .eyebrow {
  display: inline-block;
  background-color: #B85C1F;
  color: #F5EFE7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 9px 16px;
}
.joinery-hero h1 {
  font-size: 56px;
  line-height: 1.08;
  margin: 30px 0 22px;
  max-width: 860px;
}
.joinery-hero .subcopy {
  max-width: 740px;
  font-size: 18px;
  color: #F5EFE7;
  margin-bottom: 34px;
}
.joinery-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Cabinet graphic */
.cabinet-stage {
  margin-top: 74px;
}
.cabinet-base {
  position: relative;
  height: 216px;
  border-bottom: 1px solid #B85C1F;
}
.cabinet-base::before,
.cabinet-base::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background-color: #B85C1F;
}
.cabinet-base::before {
  left: 24px;
}
.cabinet-base::after {
  right: 24px;
}
.cabinet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 210px;
  height: 178px;
  border: 1px solid #B85C1F;
  background:
    linear-gradient(90deg, #221A14 0%, #221A14 50%, #171210 50%, #171210 100%);
}
.cabinet::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #B85C1F;
}
.cabinet .knob {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #B85C1F;
}
.cabinet .knob-left {
  left: 23%;
}
.cabinet .knob-right {
  right: 23%;
}
.cabinet-captions {
  display: flex;
  justify-content: space-between;
  max-width: 470px;
  margin: 18px auto 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #E8C39A;
}

/* ==========================================================================
   SHARED SECTION PIECES
   ========================================================================== */
.section-head {
  margin-bottom: 26px;
}
.section-head .section-eyebrow {
  color: #E8C39A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 40px;
  margin-top: 8px;
}
.section-head .section-intro {
  max-width: 780px;
  color: #F5EFE7;
  margin-top: 16px;
}
.chip {
  display: inline-block;
  background-color: #B85C1F;
  color: #F5EFE7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 13px;
  white-space: nowrap;
}

/* ==========================================================================
   GRAIN ROWS
   ========================================================================== */
.grain-rows {
  background-color: #171210;
}
.grain-rows .grain-rows-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}
.grain-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 34px 0;
  border-bottom: 1px solid #B85C1F;
}
.grain-row:last-child {
  border-bottom: none;
}
.grain-row .row-glyph {
  flex: none;
  width: 26px;
  height: 13px;
  background-color: #B85C1F;
  background-image:
    linear-gradient(#171210, #171210) 0 1px / 26px 1px no-repeat,
    linear-gradient(#171210, #171210) 1px 5px / 20px 1px no-repeat,
    linear-gradient(#171210, #171210) 0 10px / 26px 1px no-repeat;
}
.grain-row h3 {
  flex: none;
  min-width: 190px;
  font-size: 25px;
}
.grain-row p {
  flex: 1;
  color: #F5EFE7;
}
.grain-row .chip {
  flex: none;
}

/* ==========================================================================
   WOOD STRIP
   ========================================================================== */
.wood-strip {
  background-color: #1D1612;
  border-top: 1px solid #B85C1F;
  border-bottom: 1px solid #B85C1F;
}
.wood-strip .wood-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}
.wood-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
}
.wood-tile {
  flex: 1;
  min-width: 220px;
  background-color: #221A14;
  border: 1px solid #3A2B1E;
  padding: 30px;
}
.wood-tile .plank {
  width: 66px;
  height: 34px;
  border: 1px solid #B85C1F;
  background-image:
    linear-gradient(#B85C1F, #B85C1F) 0 10px / 100% 1px no-repeat,
    linear-gradient(#B85C1F, #B85C1F) 0 20px / 100% 1px no-repeat;
  margin-bottom: 20px;
}
.wood-tile:nth-child(3) .plank {
  background-color: #B85C1F;
  background-image:
    linear-gradient(#F5EFE7, #F5EFE7) 0 10px / 100% 1px no-repeat,
    linear-gradient(#F5EFE7, #F5EFE7) 0 20px / 100% 1px no-repeat;
  border-color: #B85C1F;
}
.wood-tile h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.wood-tile p {
  color: #F5EFE7;
}

/* ==========================================================================
   LAST ROWS
   ========================================================================== */
.last-rows .last-rows-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
}
.last-row {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 32px 0;
  border-bottom: 1px solid #B85C1F;
}
.last-row:last-child {
  border-bottom: none;
}
.dovetail-mark {
  flex: none;
  width: 28px;
  height: 18px;
  background-color: #B85C1F;
  clip-path: polygon(
    0 0, 9px 0, 9px 42%, 17px 42%, 17px 0, 100% 0,
    100% 100%, 17px 100%, 17px 58%, 9px 58%, 9px 100%, 0 100%
  );
}
.last-row h3 {
  flex: none;
  min-width: 190px;
  font-size: 25px;
}
.last-row p {
  flex: 1;
  color: #F5EFE7;
}
.last-row .chip {
  flex: none;
}

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  background-color: #B85C1F;
}
.cta-band .cta-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}
.cta-band h2 {
  font-size: 40px;
  color: #F5EFE7;
}
.cta-band p {
  color: #F5EFE7;
  margin: 18px auto 30px;
  max-width: 640px;
}

/* ==========================================================================
   JOINERY FOOTER
   ========================================================================== */
.joinery-footer {
  background-color: #171210;
  border-top: 1px solid #B85C1F;
}
.joinery-footer .joinery-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 26px;
}
.footer-row-1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 34px;
}
.footer-row-1 .footer-brand .brand-word {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 4px;
  color: #F5EFE7;
}
.footer-row-1 .footer-brand .brand-caption {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #B85C1F;
  margin-top: 4px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.footer-links a {
  color: #F5EFE7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-links a:hover {
  color: #E8C39A;
}
.footer-contact {
  text-align: right;
}
.footer-contact a {
  display: block;
  color: #E8C39A;
  font-size: 14px;
}
.footer-contact a:hover {
  color: #F5EFE7;
}
.footer-row-2 {
  position: relative;
  border-top: 1px solid #B85C1F;
  padding: 18px 0 6px;
  text-align: center;
  font-size: 13px;
  color: #F5EFE7;
}
.footer-row-2 .grain-motif {
  position: absolute;
  left: 0;
  top: 20px;
  width: 18px;
  height: 9px;
  background-image:
    linear-gradient(#B85C1F, #B85C1F) 0 0 / 18px 2px no-repeat,
    linear-gradient(#B85C1F, #B85C1F) 2px 4px / 13px 2px no-repeat,
    linear-gradient(#B85C1F, #B85C1F) 0 8px / 18px 2px no-repeat;
}
.footer-row-2 a {
  color: #E8C39A;
}
.footer-row-2 a:hover {
  color: #B85C1F;
}

/* ==========================================================================
   SECONDARY PAGES — page hero
   ========================================================================== */
.page-hero {
  background-color: #171210;
  border-bottom: 1px solid #B85C1F;
}
.page-hero .page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 24px 60px;
}
.page-hero .page-eyebrow {
  color: #E8C39A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.page-hero h1 {
  font-size: 46px;
  margin: 12px 0 18px;
}
.page-hero .page-intro {
  max-width: 800px;
  font-size: 18px;
  color: #F5EFE7;
}

/* ==========================================================================
   SECONDARY PAGES — services
   ========================================================================== */
.services-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 84px 24px 20px;
}
.service-block {
  padding: 36px 0;
  border-bottom: 1px solid #B85C1F;
}
.service-block:last-child {
  border-bottom: none;
}
.service-block .service-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.service-block .service-num {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #E8C39A;
}
.service-block h2 {
  font-size: 28px;
}
.service-block p {
  margin-top: 14px;
  color: #F5EFE7;
}

/* Process overview */
.process-overview {
  background-color: #1D1612;
  border-top: 1px solid #B85C1F;
  border-bottom: 1px solid #B85C1F;
}
.process-overview .process-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 84px 24px;
}
.process-inner ol {
  list-style: none;
  margin-top: 12px;
}
.process-inner li {
  counter-increment: process-step;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid #B85C1F;
}
.process-inner li:last-child {
  border-bottom: none;
}
.process-inner li::before {
  content: "0" counter(process-step);
  flex: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  color: #E8C39A;
  min-width: 40px;
}
.process-inner h3 {
  font-size: 21px;
}
.process-inner li p {
  color: #F5EFE7;
  margin-top: 6px;
}

/* ==========================================================================
   SECONDARY PAGES — contact
   ========================================================================== */
.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 84px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-form-panel {
  background-color: #221A14;
  border: 1px solid #3A2B1E;
  padding: 34px;
}
.contact-form-panel h2 {
  font-size: 26px;
  margin-bottom: 6px;
}
.contact-form-panel .form-lede {
  color: #F5EFE7;
  margin-bottom: 8px;
}
.contact-form label {
  display: block;
  margin: 18px 0 6px;
  color: #E8C39A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: #171210;
  border: 1px solid #4A3826;
  color: #F5EFE7;
  padding: 13px 14px;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #B85C1F;
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}
.contact-form .btn {
  margin-top: 24px;
  border: none;
}
.form-note {
  color: #E8C39A;
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
}
.contact-info .info-block {
  padding: 16px 0;
  border-bottom: 1px solid #B85C1F;
}
.contact-info .info-block:first-child {
  padding-top: 0;
}
.contact-info h3 {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #E8C39A;
  margin-bottom: 6px;
}
.contact-info p,
.contact-info a,
.contact-info li {
  color: #F5EFE7;
}
.business-hours {
  list-style: none;
}
.business-hours li {
  padding: 2px 0;
}
.faq-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}
.faq-item {
  border-bottom: 1px solid #B85C1F;
}
.faq-item:first-child {
  border-top: 1px solid #B85C1F;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: #F5EFE7;
}
.faq-q .faq-tick {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid #B85C1F;
  border-bottom: 2px solid #B85C1F;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q .faq-tick {
  transform: rotate(225deg);
}
.faq-a {
  display: none;
  padding: 0 0 20px;
  color: #F5EFE7;
  max-width: 780px;
}
.faq-item.open .faq-a {
  display: block;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .grain-row,
  .last-row {
    flex-wrap: wrap;
  }
  .grain-row .chip,
  .last-row .chip {
    margin-left: 0;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .footer-row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-contact {
    text-align: left;
  }
}
@media (max-width: 760px) {
  .grain-nav .grain-links {
    display: none;
  }
  .grain-nav .nav-toggle {
    display: flex;
  }
  .joinery-hero h1 {
    font-size: 38px;
  }
  .section-head h2,
  .cta-band h2 {
    font-size: 32px;
  }
  .grain-row,
  .last-row {
    display: block;
    padding: 26px 0;
  }
  .grain-row .row-glyph,
  .last-row .dovetail-mark {
    margin-bottom: 12px;
  }
  .grain-row h3,
  .last-row h3 {
    margin: 10px 0 8px;
  }
  .grain-row .chip,
  .last-row .chip {
    margin-top: 12px;
  }
  .wood-tiles {
    flex-direction: column;
  }
  .page-hero h1 {
    font-size: 36px;
  }
  .service-block .service-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .cabinet-stage {
    margin-top: 50px;
  }
  .cabinet-base {
    height: 180px;
  }
  .cabinet {
    width: 170px;
    height: 148px;
  }
  .footer-row-2 {
    text-align: left;
    padding-left: 0;
  }
  .footer-row-2 .grain-motif {
    display: none;
  }
}
