/*
Theme Name: Yuh Wi Product Inquiry
Theme URI: https://www.hoseclamps.com.tw
Author: Yuh Wi Enterprise Co., Ltd.
Description: 峪華企業有限公司產品介紹與詢價單頁網站佈景主題。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: yuhwi
*/

:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #607080;
  --line: #d9e1e8;
  --paper: #f8fafb;
  --white: #ffffff;
  --steel: #3d556d;
  --blue: #1268a8;
  --blue-dark: #0d4876;
  --copper: #a76b31;
  --green: #32715a;
  --shadow: 0 18px 55px rgba(23, 33, 43, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(248, 250, 251, 0.92);
  border-bottom: 1px solid rgba(217, 225, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--steel), var(--blue));
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: #3a4855;
  font-size: 0.95rem;
}

.nav a,
.header-call {
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav a:hover {
  color: var(--blue);
}

.header-call {
  justify-self: end;
  padding: 10px 14px;
  color: var(--blue-dark);
  border: 1px solid #bad3e6;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.header-call:hover {
  background: #e8f3fb;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  min-height: calc(100vh - 76px);
  padding: clamp(28px, 5vw, 72px);
  gap: clamp(28px, 5vw, 62px);
}

.hero-content {
  align-self: center;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.hero-copy {
  max-width: 620px;
  color: #415364;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(18, 104, 168, 0.22);
}

.button.primary:hover {
  background: var(--blue-dark);
}

.button.secondary {
  color: var(--steel);
  background: var(--white);
  border-color: var(--line);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}

.hero-stats div {
  padding: 16px;
  border-top: 2px solid var(--line);
}

.hero-stats dt {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #dfe6eb;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(248, 250, 251, 0.42), rgba(248, 250, 251, 0.02) 45%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  color: var(--white);
  background: linear-gradient(135deg, #253746, #0f654e);
}

.intro p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.products {
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.product-card {
  min-height: 340px;
  padding: 28px;
  background: var(--white);
}

.product-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  place-items: center;
  color: var(--green);
  border: 1px solid #bad6ca;
  border-radius: 8px;
  font-weight: 900;
}

.product-photo {
  width: 284px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
  object-position: left center;
}

.product-card p,
.capability-list p,
.quote-copy p {
  color: var(--muted);
}

.product-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #425464;
}

.capability {
  background: #eef3f6;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability-list article {
  min-height: 210px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quote-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(58px, 8vw, 112px) clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: var(--white);
}

.quote-copy {
  align-self: start;
  position: sticky;
  top: 104px;
}

.quote-note {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.quote-note span {
  color: rgba(255, 255, 255, 0.72);
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #304250;
  font-size: 0.95rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f7fafc;
  border: 1px solid #cbd8e2;
  border-radius: 8px;
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(18, 104, 168, 0.18);
  border-color: var(--blue);
}

#formStatus {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-grid > * {
  min-height: 150px;
  padding: 24px;
  background: var(--white);
}

.contact-grid span,
.contact-grid strong {
  display: block;
}

.contact-grid span {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-grid strong {
  font-size: 1.08rem;
  line-height: 1.45;
}

.contact-grid a:hover strong {
  color: var(--blue);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: #d6e1ea;
  background: #111b24;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .intro,
  .quote-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .quote-copy {
    position: static;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-call {
    display: none;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero,
  .section,
  .quote-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stats,
  .product-grid,
  .field-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
