/*
Theme Name: Huayong Bath
Theme URI: https://huayongbath.com
Author: Huayong Bath
Description: Custom B2B bathroom and plumbing theme for Huayong Bath.
Version: 1.0.3
Text Domain: huayong-bath
*/

:root {
  --ink: #102b4f;
  --blue: #075ec6;
  --blue-deep: #064d9d;
  --cyan: #18a4df;
  --sky: #eaf7fc;
  --line: #d9e3eb;
  --muted: #557087;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 12px clamp(24px, 5vw, 84px);
  border-bottom: 1px solid #edf2f5;
  background: rgba(255, 255, 255, .97);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.1px;
  line-height: 1;
}
.brand-symbol {
  width: 44px;
  height: 52px;
  display: none;
  flex: 0 0 auto;
  overflow: hidden;
}
.brand-symbol img {
  width: 116px;
  height: 116px;
  max-width: none;
  display: block;
  transform: translate(-36px, -15px);
}
.brand-name { display: flex; flex-direction: column; gap: 5px; }
.brand-name small {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 4px;
}
.main-navigation { display: flex; align-items: center; gap: 28px; }
.main-navigation a {
  color: #38526b;
  font-size: 14px;
  font-weight: 700;
}
.main-navigation a:hover,
.main-navigation a:focus { color: var(--blue); }
.header-action {
  flex: 0 0 auto;
  padding: 12px 17px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  overflow: hidden;
  background: linear-gradient(135deg, #f5fbfd 0%, #fff 48%, #eef8fd 100%);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(74px, 10vw, 154px) clamp(26px, 7vw, 124px);
}
.eyebrow {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.65px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 690px;
  margin-bottom: 23px;
  font-size: clamp(45px, 5vw, 78px);
  line-height: 1.02;
}
h2 {
  margin-bottom: 14px;
  font-size: clamp(31px, 3.35vw, 51px);
  line-height: 1.07;
}
h3 { margin-bottom: 9px; font-size: 21px; }
.hero-text {
  max-width: 590px;
  color: #48647d;
  font-size: 18px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.button {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: #044faa; }
.button-primary:disabled { opacity: .65; cursor: wait; }
.button-secondary { border-color: #9eb4c6; background: #fff; color: var(--ink); }
.button-secondary:hover { border-color: var(--blue); color: var(--blue); }
.button-light { background: #fff; color: var(--blue); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 23px; color: #557087; font-size: 13px; font-weight: 700; }
.hero-points span::before {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  content: "";
}
.hero-image-wrap { position: relative; min-height: 530px; }
.hero-image { width: 100%; height: 100%; min-height: 660px; display: block; object-fit: cover; }
.hero-image-label {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(360px, 85%);
  padding: 23px 28px;
  background: rgba(10, 44, 80, .93);
  color: #fff;
}
.hero-image-label span {
  display: block;
  margin-bottom: 6px;
  color: #77c9ee;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.hero-image-label strong { font-size: 20px; }

.intro-strip {
  padding: 72px clamp(26px, 10vw, 200px);
  background: #0f3967;
  color: #fff;
}
.intro-strip .eyebrow { color: #8ad9f6; }
.intro-strip p:last-child {
  max-width: 1060px;
  margin: 0;
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.25;
}
.section { padding: 110px clamp(26px, 7vw, 124px); }
.section-heading {
  display: grid;
  grid-template-columns: 1.15fr .7fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 44px;
}
.section-heading > p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(25, 58, 89, .11); }
.product-card > img { width: 100%; height: 255px; display: block; object-fit: cover; }
.product-card > div { padding: 23px; }
.product-card p { min-height: 54px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-card a { color: var(--blue); font-size: 13px; font-weight: 800; }
.capability { background: var(--sky); }
.capability-heading { max-width: 720px; margin-bottom: 45px; }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.strength-grid article { min-height: 250px; padding: 30px; border-top: 4px solid #72c9ed; background: #fff; }
.strength-grid span { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.strength-grid h3 { margin-top: 38px; }
.strength-grid p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.quote-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 70px clamp(26px, 7vw, 124px);
  background: linear-gradient(105deg, var(--blue-deep), #0c82cd);
  color: #fff;
}
.quote-band .eyebrow { color: #b2eaff; }
.quote-band h2 { max-width: 840px; margin: 0; }
.quote-band .button { flex: 0 0 auto; }
.inquiry {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(42px, 7vw, 120px);
  align-items: start;
}
.inquiry-copy { padding-top: 14px; }
.inquiry-copy > p:not(.eyebrow) { max-width: 460px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.contact-detail span { color: #7e94a6; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.contact-detail a { color: var(--blue); font-size: 17px; font-weight: 800; }
.contact-detail strong { font-size: 16px; }
.inquiry-form { padding: 32px; border: 1px solid #dcebf1; background: #f5fafc; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  color: #274865;
  font-size: 12px;
  font-weight: 800;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #c5d7e2;
  border-radius: 0;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 94, 198, .10); }
.inquiry-form textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.form-status { margin: 15px 0 0; font-size: 14px; line-height: 1.45; }
.form-status.success { color: #087344; }
.form-status.error { color: #b42318; }
.form-note { margin: 16px 0 0; color: #72889a; font-size: 12px; }
.blog-section { background: #f7fafc; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { padding: 28px; border: 1px solid var(--line); background: #fff; }
.post-card time { color: #7890a3; font-size: 12px; }
.post-card h3 { margin: 16px 0 10px; }
.post-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-card a { color: var(--blue); font-size: 13px; font-weight: 800; }

.content-shell { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 110px; }
.content-shell h1 { font-size: clamp(38px, 5vw, 60px); }
.entry-meta { margin-bottom: 32px; color: #7890a3; font-size: 13px; }
.entry-content { color: #294966; font-size: 17px; line-height: 1.8; }
.entry-content img { height: auto; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 30px clamp(26px, 7vw, 124px);
  border-top: 1px solid var(--line);
  color: #73899a;
  font-size: 12px;
}
.footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
}
.footer-wordmark span {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: 4px;
}
.site-footer p { margin: 0; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 43, 79, .12);
  }
  .main-navigation.is-open { display: flex; }
  .main-navigation a { padding: 14px 0; border-bottom: 1px solid #edf2f5; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 82px 8vw 58px; }
  .hero-image, .hero-image-wrap { min-height: 500px; }
  .section-heading, .inquiry { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .quote-band { align-items: flex-start; flex-direction: column; }
  .inquiry-copy { padding-top: 0; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { min-height: 69px; padding: 8px 18px; }
  .brand-symbol { width: 35px; height: 44px; }
  .brand-symbol img { width: 96px; height: 96px; transform: translate(-30px, -12px); }
  .brand { gap: 5px; font-size: 13px; }
  .brand-name small { font-size: 8px; letter-spacing: 3px; }
  .header-action { display: none; }
  .hero-copy { padding: 67px 24px 46px; }
  h1 { font-size: 43px; }
  .hero-image, .hero-image-wrap { min-height: 420px; }
  .hero-image-label { padding: 18px; }
  .hero-image-label strong { font-size: 17px; }
  .section, .intro-strip { padding: 72px 24px; }
  .product-grid, .strength-grid, .form-row, .post-grid, .archive-grid { grid-template-columns: 1fr; }
  .product-card > img { height: 260px; }
  .quote-band { padding: 56px 24px; }
  .inquiry-form { padding: 22px; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; padding: 27px 24px; }
}
