:root {
  --craft-navy: #071d38;
  --craft-blue: #123f70;
  --craft-orange: #f58220;
  --craft-cream: #fbf8f1;
  --craft-paper: #fffdf8;
  --craft-ink: #16283c;
  --craft-muted: #607183;
  --craft-line: rgba(7, 29, 56, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--craft-cream);
  color: var(--craft-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.craft-page {
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(7,29,56,.025) 1px, transparent 1px),
    linear-gradient(rgba(7,29,56,.025) 1px, transparent 1px),
    var(--craft-cream);
  background-size: 28px 28px;
}

.header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  background: #082452;
  border-bottom: 1px solid #031b3d;
  position: relative;
  z-index: 10;
}

.logo.small {
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .18s ease;
}

.header.main-header-only > .logo.small:hover,
.header.main-header-only > .logo.small:focus-visible { color: #f24a13; }

.header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.header nav a {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header nav a:hover,
.header nav a:focus-visible { color: #f24a13; }

.craft-hero {
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr);
  background: var(--craft-paper);
  border-bottom: 1px solid var(--craft-line);
}

.hero-copy {
  padding: clamp(54px, 7vw, 112px) clamp(28px, 5vw, 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -80px;
  bottom: 44px;
  border: 1px solid rgba(245,130,32,.24);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--craft-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

h1, h2, h3, p { margin-top: 0; }

.craft-hero h1 {
  max-width: 660px;
  margin-bottom: 24px;
  color: var(--craft-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.25vw, 84px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-lede {
  max-width: 635px;
  margin-bottom: 30px;
  color: var(--craft-muted);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions.center { justify-content: center; }

.process-switcher {
  min-height: 66px;
  padding: 8px clamp(18px, 4vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 9;
  border-top: 1px solid rgba(7,29,56,.08);
  border-bottom: 1px solid rgba(7,29,56,.16);
  background: rgba(255,253,248,.94);
  box-shadow: 0 8px 28px rgba(7,29,56,.08);
  backdrop-filter: blur(14px);
}

.process-switcher > span {
  margin-right: 10px;
  color: var(--craft-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.process-switcher a {
  min-height: 42px;
  padding: 9px 18px 9px 10px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(7,29,56,.2);
  border-radius: 999px;
  color: var(--craft-navy);
  background: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}

.process-switcher a:hover,
.process-switcher a:focus-visible {
  color: #fff;
  border-color: var(--craft-orange);
  background: var(--craft-orange);
  transform: translateY(-1px);
  outline: none;
}

.switch-number {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--craft-navy);
  font-size: 9px;
}

.button {
  min-height: 47px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--craft-navy);
  border-radius: 999px;
  color: var(--craft-navy);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--craft-orange); border-color: var(--craft-orange); color: #fff; }
.button.secondary { background: transparent; }
.button.secondary:hover { background: var(--craft-navy); color: #fff; }
.button.secondary.light { border-color: rgba(255,255,255,.7); color: #fff; }
.button.secondary.light:hover { background: #fff; color: var(--craft-navy); }

.hero-visual {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background: #f3efe6;
  border-left: 1px solid var(--craft-line);
}

.hero-visual::after,
.shop-window-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,253,248,.14), transparent 35%, rgba(245,130,32,.08));
  pointer-events: none;
}

.hero-visual img,
.shop-window-art img { object-fit: cover; }

/* PHP page images use the same fill behavior as the approved HTML preview. */
.hero-visual > img,
.process-art-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shop-stamp {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  width: 128px;
  height: 128px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid var(--craft-orange);
  border-radius: 50%;
  color: var(--craft-navy);
  background: rgba(255,253,248,.86);
  transform: rotate(-8deg);
}

.shop-stamp strong { font-size: 17px; }
.shop-stamp span { margin-top: 5px; font-size: 9px; font-weight: 800; letter-spacing: .12em; }

.embroidery-shop-stamp {
  right: 6%;
  top: 4%;
  bottom: auto;
  width: 90px;
  height: 90px;
  background: transparent;
}

.craft-intro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 28px 72px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.craft-intro h2,
.process-heading h2,
.guide-title h2,
.quality-copy h2,
.craft-faq h2,
.craft-cta h2 {
  margin-bottom: 0;
  color: var(--craft-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.3vw, 66px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.craft-intro > p {
  margin-bottom: 4px;
  color: var(--craft-muted);
  font-size: 17px;
  line-height: 1.8;
}

.process-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px clamp(24px, 5vw, 74px) 84px;
  border: 1px solid var(--craft-line);
  background: rgba(255,253,248,.94);
  box-shadow: 0 18px 60px rgba(7,29,56,.06);
  scroll-margin-top: 80px;
}

.screen-section { border-top: 6px solid var(--craft-orange); }
.embroidery-section { border-top: 6px solid var(--craft-blue); }

.process-heading {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  max-width: 950px;
  margin-bottom: 48px;
}

.section-index {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(7,29,56,.3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 82px;
  line-height: .88;
}

.section-lede {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--craft-muted);
  font-size: 17px;
  line-height: 1.75;
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--craft-line);
  border-left: 1px solid var(--craft-line);
}

.process-facts {
  margin: 0 0 38px;
}

.process-facts > h3 {
  margin: 0 0 16px;
  color: var(--craft-navy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.fact-grid article {
  min-height: 188px;
  padding: 22px;
  border: 1px solid var(--craft-line);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
}

.fact-grid article > span {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--craft-orange);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.embroidery-section .fact-grid article > span { background: var(--craft-blue); }

.fact-grid h4 {
  margin: 0 0 9px;
  color: var(--craft-navy);
  font-size: 16px;
  line-height: 1.25;
}

.fact-grid p {
  margin: 0;
  color: var(--craft-muted);
  font-size: 13px;
  line-height: 1.6;
}

.process-step {
  min-height: 245px;
  padding: 26px 24px 28px;
  border-right: 1px solid var(--craft-line);
  border-bottom: 1px solid var(--craft-line);
  background: rgba(255,255,255,.54);
  transition: background .2s ease, transform .2s ease;
}

.process-step:hover { background: #fff; transform: translateY(-3px); }

.step-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.ink .step-number { background: var(--craft-orange); }
.thread .step-number { background: var(--craft-blue); }

.process-step h3 {
  margin-bottom: 10px;
  color: var(--craft-navy);
  font-size: 18px;
  line-height: 1.25;
}

.process-step p {
  margin-bottom: 0;
  color: var(--craft-muted);
  font-size: 14px;
  line-height: 1.65;
}

.craft-note {
  margin-top: 28px;
  padding: 25px 28px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: center;
  border-left: 4px solid;
}

.ink-note { background: rgba(245,130,32,.08); border-color: var(--craft-orange); }
.thread-note { background: rgba(18,63,112,.07); border-color: var(--craft-blue); }
.note-label { color: var(--craft-navy); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.craft-note p { margin: 0; color: var(--craft-ink); font-size: 15px; line-height: 1.7; }

.process-art {
  margin: -76px clamp(-74px, -5vw, -24px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, .31fr);
  background: var(--craft-navy);
  color: #fff;
}

.process-art-image {
  min-height: clamp(420px, 48vw, 610px);
  position: relative;
  overflow: hidden;
  background: #f3efe6;
}

.process-art-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,253,248,.08), transparent 45%, rgba(245,130,32,.08));
  pointer-events: none;
}

.process-art-image img { object-fit: cover; }

.process-art figcaption {
  padding: 48px 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.process-art figcaption span {
  margin-bottom: 18px;
  color: #ffab63;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .15em;
}

.process-art figcaption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.12;
}

.section-return {
  margin-top: 26px;
  display: flex;
  justify-content: flex-end;
}

.section-return a {
  color: var(--craft-blue);
  font-size: 13px;
  font-weight: 900;
  text-underline-offset: 4px;
}

.method-guide {
  max-width: 1180px;
  margin: 110px auto;
  padding: 0 28px;
}

.guide-title { max-width: 760px; margin-bottom: 44px; }
.guide-title p:last-child { margin: 20px 0 0; color: var(--craft-muted); font-size: 17px; line-height: 1.7; }

.method-table { border: 1px solid var(--craft-line); background: rgba(255,255,255,.7); }
.method-row { display: grid; grid-template-columns: .72fr 1fr 1fr; border-bottom: 1px solid var(--craft-line); }
.method-row:last-child { border-bottom: 0; }
.method-row > div { min-height: 78px; padding: 20px 24px; display: flex; align-items: center; border-right: 1px solid var(--craft-line); color: var(--craft-muted); font-size: 14px; line-height: 1.55; }
.method-row > div:last-child { border-right: 0; }
.method-row > div:first-child { color: var(--craft-navy); font-weight: 900; }
.method-head { background: var(--craft-navy); }
.method-head > div { min-height: 58px; color: #fff !important; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.method-head > div:nth-child(2) { color: #ffab63 !important; }

.quality-section {
  padding: 100px max(28px, calc((100vw - 1180px) / 2));
  background: var(--craft-paper);
  border-top: 1px solid var(--craft-line);
  border-bottom: 1px solid var(--craft-line);
}

.quality-copy { max-width: 780px; margin-bottom: 50px; }
.quality-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quality-list article { padding: 30px; border-top: 2px solid var(--craft-orange); background: var(--craft-cream); }
.quality-list span { color: var(--craft-orange); font-size: 12px; font-weight: 900; }
.quality-list h3 { margin: 28px 0 10px; color: var(--craft-navy); font-size: 20px; }
.quality-list p { margin: 0; color: var(--craft-muted); font-size: 14px; line-height: 1.65; }

.craft-faq {
  max-width: 1180px;
  margin: 0 auto;
  padding: 110px 28px;
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 80px;
}

.faq-list { border-top: 1px solid var(--craft-line); }
.faq-list details { border-bottom: 1px solid var(--craft-line); }
.faq-list summary { padding: 24px 34px 24px 0; color: var(--craft-navy); font-size: 17px; font-weight: 900; cursor: pointer; }
.faq-list details p { padding: 0 34px 22px 0; margin: 0; color: var(--craft-muted); font-size: 15px; line-height: 1.7; }

.craft-cta {
  padding: 96px 28px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(245,130,32,.12), transparent 40%),
    var(--craft-navy);
}

.craft-cta .eyebrow { color: #ffab63; }
.craft-cta h2 { max-width: 880px; margin: 0 auto 20px; color: #fff; }
.craft-cta > p:not(.eyebrow) { margin-bottom: 30px; color: rgba(255,255,255,.72); font-size: 17px; }

.s4c-compact-footer { margin-top: 28px; background: #082452; color: #fff; font-family: Arial,Helvetica,sans-serif; }
.s4c-compact-footer * { box-sizing: border-box; }
.s4c-compact-footer-main { display: grid; grid-template-columns: minmax(205px,.85fr) minmax(440px,2fr) minmax(225px,.95fr); align-items: center; gap: 22px; padding: 16px 5%; }
.s4c-compact-logo { display: inline-block; color: #fff; text-decoration: none; font-size: 20px; font-weight: 900; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; }
.s4c-compact-logo:hover,.s4c-compact-logo:focus { color: #ff9a61; }
.s4c-compact-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 9px 18px; }
.s4c-compact-links a,.s4c-compact-contact a,.s4c-compact-footer-bottom a { color: #fff; text-decoration: none; font-weight: 800; }
.s4c-compact-links a { font-size: 13px; white-space: nowrap; }
.s4c-compact-links a:hover,.s4c-compact-links a:focus,.s4c-compact-contact a:hover,.s4c-compact-contact a:focus,.s4c-compact-footer-bottom a:hover,.s4c-compact-footer-bottom a:focus { color: #ff9a61; text-decoration: underline; }
.s4c-compact-contact { display: flex; align-items: center; justify-content: flex-end; text-align: right; font-size: 13px; line-height: 1.35; }
.s4c-compact-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 8px 5%; background: #031b3d; color: #e6eef9; font-size: 11px; line-height: 1.35; }
.s4c-compact-footer-bottom nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.s4c-compact-footer-bottom a { font-size: 11px; }

@media (max-width: 1100px) {
  .header.main-header-only { height: auto; flex-direction: column; align-items: flex-start; padding: 15px; }
  .header.main-header-only nav { min-width: 0; width: 100%; flex-wrap: wrap; justify-content: flex-end; gap: 12px; font-size: 14px; line-height: normal; }
  .header.main-header-only .logo.small { font-size: 26px; text-align: left; }
}

@media (max-width: 1050px) {
  .s4c-compact-footer-main { grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 16px 4%; }
  .s4c-compact-links { grid-column: 1/-1; grid-row: 2; justify-content: flex-start; border-top: 1px solid rgba(255,255,255,.16); padding-top: 11px; }
}

@media (max-width: 1040px) {
  .craft-hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 540px; border-left: 0; border-top: 1px solid var(--craft-line); }
  .hero-copy::after { display: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .process-art { grid-template-columns: 1fr; }
  .process-art figcaption { min-height: 220px; }
}

@media (max-width: 720px) {
  .craft-hero { min-height: auto; }
  .hero-copy { padding: 56px 22px 48px; }
  .craft-hero h1 { font-size: 47px; }
  .hero-visual { min-height: 360px; }
  .process-switcher { min-height: 58px; padding: 7px 10px; gap: 6px; }
  .process-switcher > span { display: none; }
  .process-switcher a { flex: 1; justify-content: center; padding-right: 10px; font-size: 11px; }
  .shop-stamp { width: 96px; height: 96px; right: 18px; bottom: 18px; }
  .embroidery-shop-stamp { width: 72px; height: 72px; right: 5%; top: 4%; bottom: auto; }
  .shop-stamp strong { font-size: 13px; }
  .craft-intro, .craft-faq { grid-template-columns: 1fr; gap: 28px; padding-top: 74px; padding-bottom: 60px; }
  .process-section { margin: 0 12px; padding: 54px 14px 58px; }
  .process-heading { grid-template-columns: 1fr; gap: 14px; padding: 0 8px; }
  .section-index { font-size: 56px; }
  .process-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .fact-grid article { min-height: 0; }
  .process-step { min-height: auto; display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
  .step-number { margin-bottom: 0; }
  .craft-note { grid-template-columns: 1fr; gap: 10px; }
  .process-art { margin: -54px -14px 48px; }
  .process-art-image { min-height: 360px; }
  .process-art figcaption { min-height: 190px; padding: 30px 24px; }
  .method-guide { margin: 76px auto; padding: 0 16px; }
  .method-head { display: none; }
  .method-row { grid-template-columns: 1fr; padding: 16px; }
  .method-row > div { min-height: 0; padding: 8px 0 8px 108px; position: relative; border-right: 0; }
  .method-row > div::before { content: attr(data-label); width: 94px; position: absolute; left: 0; color: var(--craft-orange); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
  .quality-section { padding: 74px 18px; }
  .quality-list { grid-template-columns: 1fr; }
  .craft-faq { padding-left: 20px; padding-right: 20px; }
  .craft-cta { padding: 72px 22px; }
  .s4c-compact-footer { margin-top: 22px; }
  .s4c-compact-footer-main { display: block; padding: 16px 18px; text-align: center; }
  .s4c-compact-logo { font-size: 19px; }
  .s4c-compact-links { margin-top: 11px; padding-top: 10px; justify-content: center; gap: 8px 14px; }
  .s4c-compact-contact { justify-content: center; align-items: center; text-align: center; margin-top: 10px; }
  .s4c-compact-footer-bottom { display: block; padding: 10px 16px; text-align: center; font-size: 10px; }
  .s4c-compact-footer-bottom nav { justify-content: center; margin-top: 5px; gap: 5px 12px; }
  .s4c-compact-footer-bottom a { font-size: 10px; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
